fix tests

This commit is contained in:
Cayo Puigdefabregas 2022-08-12 09:58:19 +02:00
parent cf6965f2e6
commit 29d69cd285
2 changed files with 4 additions and 5 deletions

View file

@ -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'] == {

View file

@ -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'