fix tests
This commit is contained in:
parent
cf6965f2e6
commit
29d69cd285
|
@ -100,7 +100,7 @@ def test_api_docs(client: Client):
|
||||||
'/users/login/',
|
'/users/login/',
|
||||||
'/users/logout/',
|
'/users/logout/',
|
||||||
'/versions/',
|
'/versions/',
|
||||||
'/workbench/settings/',
|
'/workbench/',
|
||||||
}
|
}
|
||||||
assert docs['info'] == {'title': 'Devicehub', 'version': '0.2'}
|
assert docs['info'] == {'title': 'Devicehub', 'version': '0.2'}
|
||||||
assert docs['components']['securitySchemes']['bearerAuth'] == {
|
assert docs['components']['securitySchemes']['bearerAuth'] == {
|
||||||
|
|
|
@ -1282,18 +1282,17 @@ def test_action_datawipe(user3: UserClientFlask):
|
||||||
@pytest.mark.mvp
|
@pytest.mark.mvp
|
||||||
@pytest.mark.usefixtures(conftest.app_context.__name__)
|
@pytest.mark.usefixtures(conftest.app_context.__name__)
|
||||||
def test_wb_settings(user3: UserClientFlask):
|
def test_wb_settings(user3: UserClientFlask):
|
||||||
uri = '/workbench/settings/'
|
uri = '/workbench/'
|
||||||
body, status = user3.get(uri)
|
body, status = user3.get(uri)
|
||||||
|
|
||||||
assert status == '200 OK'
|
assert status == '200 OK'
|
||||||
assert "Download your settings for Workbench" in body
|
assert "Please download the ISO file and the settings file of the" in body
|
||||||
assert "Workbench Settings" in body
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.mvp
|
@pytest.mark.mvp
|
||||||
@pytest.mark.usefixtures(conftest.app_context.__name__)
|
@pytest.mark.usefixtures(conftest.app_context.__name__)
|
||||||
def test_wb_settings_register(user3: UserClientFlask):
|
def test_wb_settings_register(user3: UserClientFlask):
|
||||||
uri = '/workbench/settings/?opt=register'
|
uri = '/workbench/?opt=register'
|
||||||
body, status = user3.get(uri)
|
body, status = user3.get(uri)
|
||||||
|
|
||||||
assert status == '200 OK'
|
assert status == '200 OK'
|
||||||
|
|
Reference in New Issue