Module: check_mk
Branch: master
Commit: 18ea9b548b0bfe46c9db431aaf6e164fd109d82f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=18ea9b548b0bfe…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Aug 26 13:02:55 2016 +0200
Fixed broken test after recent changes
---
pytest.ini | 5 ++++-
tests/web/test_wato_webapi.py | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/pytest.ini b/pytest.ini
index b241b06..19f7e6e 100644
--- a/pytest.ini
+++ b/pytest.ini
@@ -1,3 +1,6 @@
[pytest]
testpaths = tests
-addopts = -rs --result-log=test.log
+# Fail on first error and enable stepwise plugin to track steps and
+# be able to continue with the failed test after analyzing and fixing
+# the issue
+addopts = -rs --maxfail=1 --stepwise
diff --git a/tests/web/test_wato_webapi.py b/tests/web/test_wato_webapi.py
index 82b2884..d83c2d4 100644
--- a/tests/web/test_wato_webapi.py
+++ b/tests/web/test_wato_webapi.py
@@ -5,7 +5,7 @@ import pytest
from testlib import web
def test_global_settings(site, web):
- r = web.get(site.url + "wato.py")
+ r = web.get("wato.py")
assert "Global Settings" in r.text