summaryrefslogtreecommitdiff
path: root/integration-tests/test-ebics.py
diff options
context:
space:
mode:
authorMS <ms@taler.net>2020-09-08 14:16:26 +0200
committerMS <ms@taler.net>2020-09-08 14:16:26 +0200
commit0c3208483bf2d8984ef20f2fc416ef31865197a6 (patch)
tree51bcf18811e07d3e101e01ad4b948afc22f6f3a2 /integration-tests/test-ebics.py
parent60f36bba98bcf6ec3c51fc2d4dd88a42771891ff (diff)
downloadlibeufin-0c3208483bf2d8984ef20f2fc416ef31865197a6.tar.gz
libeufin-0c3208483bf2d8984ef20f2fc416ef31865197a6.tar.bz2
libeufin-0c3208483bf2d8984ef20f2fc416ef31865197a6.zip
reduce code
Diffstat (limited to 'integration-tests/test-ebics.py')
-rwxr-xr-xintegration-tests/test-ebics.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/integration-tests/test-ebics.py b/integration-tests/test-ebics.py
index 5b5c2563..aac20d7c 100755
--- a/integration-tests/test-ebics.py
+++ b/integration-tests/test-ebics.py
@@ -8,7 +8,7 @@ import socket
import hashlib
import base64
-from util import startNexus, startSandbox
+from util import startNexus, startSandbox, assertResponse
# Steps implemented in this test.
#
@@ -67,20 +67,9 @@ def fail(msg):
print(msg)
exit(1)
-def assertResponse(response):
- if response.status_code != 200:
- print("Test failed on URL: {}".format(response.url))
- # stdout/stderr from both services is A LOT of text.
- # Confusing to dump all that to console.
- print("Check nexus.log and sandbox.log, probably under /tmp")
- exit(1)
- # Allows for finer grained checks.
- return response
-
startSandbox()
startNexus(NEXUS_DB)
-
# 0.a
assertResponse(
post(