Skip to content

Is there a way to test a later code example that relies on an earlier one? #55

Open
@robbie-portia

Description

@robbie-portia

This is an awesome library - thanks for creating and maintaining it!

If I have a markdown doc that has 2 code snippets, is there any way to mark that the second one relies on the first one and therefore, in order to test the second example you need to take the code from the first example too?

E.g. test.md

You can import environment variables like this:

import os
s.environ.get("MY_ENV_VAR")

And you can also specify a default value:

s.environ.get("MY_ENV_VAR", "default")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions