Ignore self as plugin while self test + minor cleanup

This commit is contained in:
2015-12-29 22:46:14 +05:30
parent 1533bce400
commit 3351b20194
3 changed files with 4 additions and 5 deletions
+1
View File
@@ -1,2 +1,3 @@
[pytest] [pytest]
norecursedirs = .* pytest_gui_status testcases norecursedirs = .* pytest_gui_status testcases
addopts = -p no:gui_status
-1
View File
@@ -1,7 +1,6 @@
Todo Todo
------ ------
** Add py.test -p no:gui_status while test**
1. Allow config for template 1. Allow config for template
1.1. Test - env config for redis 1.1. Test - env config for redis
2. Add well-explained readme 2. Add well-explained readme
+3 -4
View File
@@ -114,10 +114,9 @@ def test_intermediate_1(tmpdir):
"REDIS_ARGS": "--test_arg = test_val", "REDIS_ARGS": "--test_arg = test_val",
"PYTEST_STATUS_PORT": "1234"}) "PYTEST_STATUS_PORT": "1234"})
def test_env_redis_1(): def test_env_redis_1():
# REDIS_PATH '''
# REDIS_ARGS Test that redis config via env variables - REDIS_PATH, REDIS_ARGS, PYTEST_STATUS_PORT work as intended.
# REDIS_PORT '''
# del status_plugin
import pytest_gui_status.status_plugin.plugin import pytest_gui_status.status_plugin.plugin
reload(pytest_gui_status.status_plugin.plugin) reload(pytest_gui_status.status_plugin.plugin)