imranariffin / small-steps-api

0 stars 0 forks source link

test requires `ENV` env var #30

Closed imranariffin closed 5 years ago

imranariffin commented 5 years ago
> python manage.py test
Traceback (most recent call last):
...
    if 'test' in sys.argv[1] and os.environ['ENV'] != 'test-ci':
  File "/home/in-gote/small-steps-api/venv/lib/python3.6/os.py", line 669, in __getitem__
    raise KeyError(key) from None
KeyError: 'ENV'

It shouldn't require any env variable to be defined.