From ca90060ba163110431f8f37489eaf6eab3a8c8d0 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 6 Mar 2021 16:25:37 +0100 Subject: [PATCH] Tests improvements --- tests/etc/config_test.yaml | 2 +- tests/test_procedure.py | 2 +- tests/utils.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/etc/config_test.yaml b/tests/etc/config_test.yaml index 06125d65..bf8f5a15 100644 --- a/tests/etc/config_test.yaml +++ b/tests/etc/config_test.yaml @@ -2,7 +2,7 @@ include: - include/test_procedure.yaml main.db: - engine: sqlite:////tmp/platypush-test-http.db + engine: sqlite:////tmp/platypush-tests.db backend.http: port: 8123 diff --git a/tests/test_procedure.py b/tests/test_procedure.py index 80060840..fddf49aa 100644 --- a/tests/test_procedure.py +++ b/tests/test_procedure.py @@ -52,7 +52,7 @@ def test_procedure_from_event(app, tmp_file): event_type = 'platypush_test_procedure_from_event' # noinspection PyUnresolvedReferences app.bus.post(CustomEvent(subtype=event_type, file=tmp_file.name, content=output_text)) - time.sleep(2) + time.sleep(3) check_file_content(expected_content=output_text, tmp_file=tmp_file) diff --git a/tests/utils.py b/tests/utils.py index c42e0e2c..631f37d5 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -24,7 +24,7 @@ test_user = 'platypush' test_pass = 'test' # Base URL -base_url = 'http://localhost:8123' +base_url = None def set_base_url(url: str):