Add pytest-env to fix pipenv run pytest command

Previously tests would fail when `pipenv run pytest` was run because the
`FLASK_ENV` was not set. Rather than having to remember to run
`FLAKS_ENV=test pipenv run pytest`, we can use `pytest-env` to set the
env variable. The `D:` prefix tells `pytest-env` to not override an
existing value for the variable.
This commit is contained in:
Patrick Smith
2018-08-21 16:01:21 -04:00
parent e068889b5b
commit e7ae991e93
3 changed files with 54 additions and 44 deletions

View File

@@ -29,6 +29,7 @@ black = "*"
pytest-watch = "*"
factory-boy = "*"
pytest-flask = "*"
pytest-env = "*"
[requires]
python_version = "3.6"