[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] 04/06: Integration tests.
From: |
gnunet |
Subject: |
[libeufin] 04/06: Integration tests. |
Date: |
Sun, 15 Nov 2020 22:06:55 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
commit be3c1e77b2a13ac93e4800a242450ae8850450a2
Author: MS <ms@taler.net>
AuthorDate: Sun Nov 15 05:39:09 2020 +0100
Integration tests.
Use appropriate setup/teardown functions.
---
integration-tests/tests.py | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/integration-tests/tests.py b/integration-tests/tests.py
index b81b7ed..40979dc 100755
--- a/integration-tests/tests.py
+++ b/integration-tests/tests.py
@@ -123,8 +123,13 @@ def prepareNexus():
startNexus(NEXUS_DB)
startSandbox(SANDBOX_DB)
-prepareSandbox()
-prepareNexus()
+def setup_function():
+ prepareSandbox()
+ prepareNexus()
+
+def teardown_function():
+ flushTablesNexus(NEXUS_DB)
+ flushTablesSandbox(SANDBOX_DB)
def test_empty_history():
resp = assertResponse(
@@ -134,7 +139,3 @@ def test_empty_history():
)
)
assert len(resp.json().get("transactions")) == 0
-
-# FIXME: find a way to reset the database between tests.
-# flushTablesNexus(NEXUS_DB)
-# flushTablesSandbox(SANDBOX_DB)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libeufin] branch master updated (5a8ac4b -> f3cb043), gnunet, 2020/11/15
- [libeufin] 04/06: Integration tests.,
gnunet <=
- [libeufin] 03/06: comment, gnunet, 2020/11/15
- [libeufin] 02/06: Integration tests., gnunet, 2020/11/15
- [libeufin] 01/06: Integration tests., gnunet, 2020/11/15
- [libeufin] 05/06: Testing backup generation and import., gnunet, 2020/11/15
- [libeufin] 06/06: Testing payment initiation and submission., gnunet, 2020/11/15