Module: check_mk
Branch: master
Commit: 2f036aeba271841bd0ceef645acecd721e6d4d94
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2f036aeba27184…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jan 26 17:32:16 2017 +0100
Setting up site only when needed
Change-Id: Ic29e644d77b68b274ce7e7968459d99a40b4b5b8
---
tests/conftest.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/conftest.py b/tests/conftest.py
index 0331dea..2a47eaa 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -132,11 +132,11 @@ def _site_id():
add_python_paths()
ensure_equal_branches()
-setup_site_and_switch_user()
import testlib
# Session fixtures must be in conftest.py to work properly
@pytest.fixture(scope="session", autouse=True)
def site(request):
+ setup_site_and_switch_user()
return _get_site_object()