diff options
author | Irina Truong <i.chernyavska@gmail.com> | 2021-02-12 21:09:38 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-12 21:09:38 -0800 |
commit | a3287c4ab2cea5ba5bef495e1174b12c3b2ae084 (patch) | |
tree | 2f9ebfe6f6312ad6c7b37ee8b17233ff72d1ed2f /tests/features/environment.py | |
parent | 762fb4b8da98fdf6792e6c5586060ed37224f894 (diff) |
Finer control over destructive warning. (#1242)
* Finer control over destructive warning.
* Review feedback.
* Changelog.
* Run integration tests with --warn=moderate.
* Fix typo.
* Black.
Diffstat (limited to 'tests/features/environment.py')
-rw-r--r-- | tests/features/environment.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/features/environment.py b/tests/features/environment.py index a8b3e26a..215c85cd 100644 --- a/tests/features/environment.py +++ b/tests/features/environment.py @@ -63,7 +63,7 @@ def before_all(context): "import coverage", "coverage.process_startup()", "import pgcli.main", - "pgcli.main.cli()", + "pgcli.main.cli(auto_envvar_prefix='BEHAVE')", ] ), ) @@ -102,6 +102,7 @@ def before_all(context): else: if "PGPASSWORD" in os.environ: del os.environ["PGPASSWORD"] + os.environ["BEHAVE_WARN"] = "moderate" context.cn = dbutils.create_db( context.conf["host"], |