libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 645784b8f2c241b32446d638a1bfb20cb0dc948e
parent 46997c1a1494a73172881257ae6932232b8f4df4
Author: MS <ms@taler.net>
Date:   Tue, 26 Jan 2021 15:29:52 +0100

test harness fixes

Diffstat:
Mintegration-tests/tests.py | 13+++++++------
Mintegration-tests/util.py | 2+-
2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/integration-tests/tests.py b/integration-tests/tests.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 +import os import pytest import json from deepdiff import DeepDiff as dd @@ -115,10 +116,10 @@ def prepareNexus(): ) ) -dropSandboxTables(DB) -startSandbox(DB) -dropNexusTables(DB) -startNexus(DB) +dropSandboxTables() +startSandbox() +dropNexusTables() +startNexus() def setup_function(): try: @@ -129,8 +130,8 @@ def setup_function(): pytest.xfail("Failed to setup this test") def teardown_function(): - dropSandboxTables(DB) - dropNexusTables(DB) + dropSandboxTables() + dropNexusTables() def test_change_password(): assertResponse( diff --git a/integration-tests/util.py b/integration-tests/util.py @@ -173,7 +173,7 @@ def startNexus(): "..", "nexus:run", "--console=plain", - "--args=serve"]), + "--args=serve"], stdin=DEVNULL, stdout=open("nexus-stdout.log", "w"), stderr=open("nexus-stderr.log", "w")