Merge pull request #3560 from greyli/fix-env-chdir

Stop change CWD to .env/.flaskenv location
This commit is contained in:
Joshua Bronson 2020-07-18 13:14:09 -04:00 committed by GitHub
commit a40c381ffd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 8 deletions

View file

@ -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