Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 737 Bytes

dotenv.rst

File metadata and controls

38 lines (24 loc) · 737 Bytes

fixtup.plugins.dotenv

It loads environment variables from a .env file. At the end of the test, the environment variables are restored to their original values.

Warning

Variables that have been modified or added during the test will also be restored to their original value or erased.

with fixtup.up('simple'):
    os.environ['HELLO'] = 'hello'
    # dispaly hello
    print(os.getenv('HELLO'))

# display None
print(os.getenv('HELLO'))

Configuration

[fixtup]
plugins=
    fixtup.plugins.dotenv

Common options