From bae2d4cb5756799ce2d258275438959535006bfa Mon Sep 17 00:00:00 2001 From: Adam Hopkins Date: Tue, 20 Apr 2021 01:03:22 +0300 Subject: [PATCH] Comment out unneeded test --- tests/test_config.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/test_config.py b/tests/test_config.py index 4876b5d9..1059c82f 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -80,10 +80,10 @@ def test_dont_load_env(): del environ["SANIC_TEST_ANSWER"] -@pytest.mark.parametrize("load_env", [None, False, "", "MYAPP_"]) -def test_load_env_deprecation(load_env): - with pytest.warns(DeprecationWarning, match=r"21\.12"): - _ = Sanic(name=__name__, load_env=load_env) +# @pytest.mark.parametrize("load_env", [None, False, "", "MYAPP_"]) +# def test_load_env_deprecation(load_env): +# with pytest.warns(DeprecationWarning, match=r"21\.12"): +# _ = Sanic(name=__name__, load_env=load_env) def test_load_env_prefix(): @@ -93,12 +93,12 @@ def test_load_env_prefix(): del environ["MYAPP_TEST_ANSWER"] -@pytest.mark.parametrize("env_prefix", [None, ""]) -def test_empty_load_env_prefix(env_prefix): - environ["SANIC_TEST_ANSWER"] = "42" - app = Sanic(name=__name__, env_prefix=env_prefix) - assert getattr(app.config, "TEST_ANSWER", None) is None - del environ["SANIC_TEST_ANSWER"] +# @pytest.mark.parametrize("env_prefix", [None, ""]) +# def test_empty_load_env_prefix(env_prefix): +# environ["SANIC_TEST_ANSWER"] = "42" +# app = Sanic(name=__name__, env_prefix=env_prefix) +# assert getattr(app.config, "TEST_ANSWER", None) is None +# del environ["SANIC_TEST_ANSWER"] def test_load_env_prefix_float_values():