[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] 03/03: Integration tests harness.
From: |
gnunet |
Subject: |
[libeufin] 03/03: Integration tests harness. |
Date: |
Thu, 21 Jan 2021 14:39:10 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
commit 85c067cb59043ced9c09b1d241df023b3f81b62d
Author: MS <ms@taler.net>
AuthorDate: Thu Jan 21 14:38:22 2021 +0100
Integration tests harness.
Make sure teardown function gets run
even when the setup function fails and
the test itself gets skipped.
---
integration-tests/tests.py | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/integration-tests/tests.py b/integration-tests/tests.py
index e063c34..ed6cfd2 100755
--- a/integration-tests/tests.py
+++ b/integration-tests/tests.py
@@ -67,7 +67,7 @@ def prepareNexus():
assertResponse(
post(
f"{PERSONA.nexus.base_url}/users",
- auth=auth.HTTPBasicAuth("admin", "x"),
+ auth=auth.HTTPBasicAuth("adminx", "x"),
json=dict(username=PERSONA.nexus.username,
password=PERSONA.nexus.password),
)
)
@@ -118,8 +118,12 @@ dropNexusTables(DB)
startNexus(DB)
def setup_function():
- prepareSandbox()
- prepareNexus()
+ try:
+ prepareSandbox()
+ prepareNexus()
+ except Exception:
+ teardown_function()
+ pytest.xfail("Failed to setup this test")
def teardown_function():
dropSandboxTables(DB)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.