env config test passing, update todo - add to pytest.ini

This commit is contained in:
2015-12-29 11:39:06 +05:30
parent 69c59a9f8b
commit 1533bce400
2 changed files with 8 additions and 7 deletions
+1
View File
@@ -1,6 +1,7 @@
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
+6 -6
View File
@@ -112,15 +112,15 @@ def test_intermediate_1(tmpdir):
@patch.dict("os.environ",
{"REDIS_PATH": "test_redis",
"REDIS_ARGS": "--test_arg = test_val",
"REDIS_PORT": "1234"})
def test_env_redis_1(monkeypatch):
"PYTEST_STATUS_PORT": "1234"})
def test_env_redis_1():
# REDIS_PATH
# REDIS_ARGS
# REDIS_PORT
# del status_plugin
monkeypatch.setenv("REDIS_PATH", "test")
print("recalc")
status_plugin.calc_globals()
redis_cmd_final = status_plugin.command_redis_server
import pytest_gui_status.status_plugin.plugin
reload(pytest_gui_status.status_plugin.plugin)
redis_cmd_final = pytest_gui_status.status_plugin.plugin.command_redis_server
assert(redis_cmd_final == "test_redis --port 1234 --test_arg = test_val")