diff --git a/pytest.ini b/pytest.ini index f08c317..2bb31c6 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,2 +1,3 @@ [pytest] norecursedirs = .* pytest_gui_status testcases +addopts = -p no:gui_status diff --git a/pytest_gui_status/status_gui/todo.txt b/pytest_gui_status/status_gui/todo.txt index 7ab200c..c4752e9 100644 --- a/pytest_gui_status/status_gui/todo.txt +++ b/pytest_gui_status/status_gui/todo.txt @@ -1,7 +1,6 @@ Todo ------ -** Add py.test -p no:gui_status while test** 1. Allow config for template 1.1. Test - env config for redis 2. Add well-explained readme diff --git a/tests/test_plugin/test_plugin.py b/tests/test_plugin/test_plugin.py index a8d86dc..ac52729 100644 --- a/tests/test_plugin/test_plugin.py +++ b/tests/test_plugin/test_plugin.py @@ -114,10 +114,9 @@ def test_intermediate_1(tmpdir): "REDIS_ARGS": "--test_arg = test_val", "PYTEST_STATUS_PORT": "1234"}) def test_env_redis_1(): - # REDIS_PATH - # REDIS_ARGS - # REDIS_PORT - # del status_plugin + ''' + Test that redis config via env variables - REDIS_PATH, REDIS_ARGS, PYTEST_STATUS_PORT work as intended. + ''' import pytest_gui_status.status_plugin.plugin reload(pytest_gui_status.status_plugin.plugin)