From 29d69cd285e24bd8273d2d2d2ab7cff1a334a407 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 12 Aug 2022 09:58:19 +0200 Subject: [PATCH] fix tests --- tests/test_basic.py | 2 +- tests/test_render_2_0.py | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/test_basic.py b/tests/test_basic.py index 39b2ca25..d4595a9c 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -100,7 +100,7 @@ def test_api_docs(client: Client): '/users/login/', '/users/logout/', '/versions/', - '/workbench/settings/', + '/workbench/', } assert docs['info'] == {'title': 'Devicehub', 'version': '0.2'} assert docs['components']['securitySchemes']['bearerAuth'] == { diff --git a/tests/test_render_2_0.py b/tests/test_render_2_0.py index 49c151ab..382db6b4 100644 --- a/tests/test_render_2_0.py +++ b/tests/test_render_2_0.py @@ -1282,18 +1282,17 @@ def test_action_datawipe(user3: UserClientFlask): @pytest.mark.mvp @pytest.mark.usefixtures(conftest.app_context.__name__) def test_wb_settings(user3: UserClientFlask): - uri = '/workbench/settings/' + uri = '/workbench/' body, status = user3.get(uri) assert status == '200 OK' - assert "Download your settings for Workbench" in body - assert "Workbench Settings" in body + assert "Please download the ISO file and the settings file of the" in body @pytest.mark.mvp @pytest.mark.usefixtures(conftest.app_context.__name__) def test_wb_settings_register(user3: UserClientFlask): - uri = '/workbench/settings/?opt=register' + uri = '/workbench/?opt=register' body, status = user3.get(uri) assert status == '200 OK'