mirror of
https://github.com/bendtherules/pytest_gui_status.git
synced 2026-08-18 13:42:26 +00:00
Ignore self as plugin while self test + minor cleanup
This commit is contained in:
@@ -1,2 +1,3 @@
|
|||||||
[pytest]
|
[pytest]
|
||||||
norecursedirs = .* pytest_gui_status testcases
|
norecursedirs = .* pytest_gui_status testcases
|
||||||
|
addopts = -p no:gui_status
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user