forked from orbit-oss/flask
Stop change CWD to .env/.flaskenv location
This commit is contained in:
parent
3fe5eecc2b
commit
84cbfc0698
2 changed files with 1 additions and 8 deletions
|
|
@ -504,7 +504,7 @@ def test_load_dotenv(monkeypatch):
|
|||
monkeypatch._setitem.append((os.environ, item, notset))
|
||||
|
||||
monkeypatch.setenv("EGGS", "3")
|
||||
monkeypatch.chdir(os.path.join(test_path, "cliapp", "inner1"))
|
||||
monkeypatch.chdir(test_path)
|
||||
assert load_dotenv()
|
||||
assert os.getcwd() == test_path
|
||||
# .flaskenv doesn't overwrite .env
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue