mirror of
https://github.com/bendtherules/pytest_gui_status.git
synced 2026-08-18 13:42:26 +00:00
env config test passing, update todo - add to pytest.ini
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user