AAA != None
Expected :None
Actual :AAA
<Click to see difference>
Traceback (most recent call last):
File "/home/behoston/PycharmProjects/direnv_problem/test.py", line 7, in test_direnv_variable
self.assertEqual(os.environ.get('VARIABLE'), 'AAA')
AssertionError: None != 'AAA'
Ran 1 test in 0.003s
FAILED (failures=1)
Process finished with exit code 1
When running test configuration (for example pytest), direnv variables are not loaded. It works fine with "standard" python run configurations.
test.py
.envrc
Output when running test run:
Output when running python run:
Run configurations
Tests
Python