From 322b340607b8e4d56d4fad7299ed58886bf3b7b2 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 29 Apr 2022 17:41:13 +0200 Subject: [PATCH] add fix test with redirects --- tests/test_render_2_0.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_render_2_0.py b/tests/test_render_2_0.py index 0565d153..16c950bf 100644 --- a/tests/test_render_2_0.py +++ b/tests/test_render_2_0.py @@ -274,7 +274,7 @@ def test_labels(user3: UserClientFlask): body, status = user3.get('/labels/') assert status == '200 OK' - assert "Tags Management" in body + assert "Unique Identifiers Management" in body @pytest.mark.mvp @@ -284,7 +284,7 @@ def test_add_tag(user3: UserClientFlask): body, status = user3.get(uri) assert status == '200 OK' - assert "Add a new Tag" in body + assert "Add a new Unique Identifier" in body data = { 'code': "tag1", @@ -667,7 +667,7 @@ def test_action_allocate_error_required(user3: UserClientFlask): uri = '/inventory/action/allocate/add/' body, status = user3.post(uri, data=data) assert status == '200 OK' - assert 'You need to specify a number of users' in body + assert 'Action Allocate error' in body @pytest.mark.mvp @@ -691,7 +691,7 @@ def test_action_allocate_error_dates(user3: UserClientFlask): uri = '/inventory/action/allocate/add/' body, status = user3.post(uri, data=data) assert status == '200 OK' - assert 'The action cannot finish before it starts.' in body + assert 'Action Allocate error' in body assert dev.actions[-1].type != 'Allocate'