add test for wbsettings
This commit is contained in:
parent
0e75865757
commit
ce001b64aa
|
@ -842,3 +842,27 @@ def test_action_datawipe(user3: UserClientFlask):
|
|||
assert dev.actions[-1].type == 'DataWipe'
|
||||
assert 'Action "DataWipe" created successfully!' in body
|
||||
assert dev.devicehub_id in body
|
||||
|
||||
|
||||
@pytest.mark.mvp
|
||||
@pytest.mark.usefixtures(conftest.app_context.__name__)
|
||||
def test_wb_settings(user3: UserClientFlask):
|
||||
uri = '/workbench/settings/'
|
||||
body, status = user3.get(uri)
|
||||
|
||||
assert status == '200 OK'
|
||||
assert "Download your settings for Workbench" in body
|
||||
assert "Workbench Settings" in body
|
||||
|
||||
|
||||
@pytest.mark.mvp
|
||||
@pytest.mark.usefixtures(conftest.app_context.__name__)
|
||||
def test_wb_settings_register(user3: UserClientFlask):
|
||||
uri = '/workbench/settings/?opt=register'
|
||||
body, status = user3.get(uri)
|
||||
|
||||
assert status == '200 OK'
|
||||
assert "WB_BENCHMARK = False" in body
|
||||
assert "WB_ERASE = \n" in body
|
||||
assert "WB_ERASE_STEPS = 0" in body
|
||||
assert "WB_ERASE_LEADING_ZEROS = False" in body
|
||||
|
|
Reference in New Issue