aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_install.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/test_install.py')
-rw-r--r--test/unit/test_install.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/unit/test_install.py b/test/unit/test_install.py
index cef2aa6..f4bc483 100644
--- a/test/unit/test_install.py
+++ b/test/unit/test_install.py
@@ -197,7 +197,7 @@ def test_install_normal_usage(driver, execute_in_page, complex_variant):
'HTTP_code_item',
'invalid_JSON',
'newer_API_version',
- 'invalid_API_version',
+ 'invalid_response_format',
'indexeddb_error_item',
'installing',
'indexeddb_error_file_uses',
@@ -285,7 +285,7 @@ def test_install_dialogs(driver, execute_in_page, message):
const response = {
ok: true,
status: 200,
- json: {api_schema_version: [99, 99]}
+ json: {$schema: "https://hydrilla.koszko.org/schemas/api_mapping_description-2.1.schema.json"}
};
browser.tabs.sendMessage = () => Promise.resolve(response);
install_view.show(...arguments);
@@ -293,15 +293,15 @@ def test_install_dialogs(driver, execute_in_page, message):
'https://hydril.la/', 'mapping', 'somemapping', [2, 1])
assert_dlg(['conf_buts'],
- 'Mapping somemapping-2.1 was served using unsupported Hydrilla API version (99.99). You might need to update Haketilo.')
- elif message == 'invalid_API_version':
+ 'Mapping somemapping-2.1 was served using unsupported Hydrilla API version. You might need to update Haketilo.')
+ elif message == 'invalid_response_format':
execute_in_page(
'''
const response = {
ok: true,
status: 200,
- /* API version here is not an array as it should be. */
- json: {api_schema_version: 123}
+ /* $schema is not a string as it should be. */
+ json: {$schema: null}
};
browser.tabs.sendMessage = () => Promise.resolve(response);
install_view.show(...arguments);
@@ -309,7 +309,7 @@ def test_install_dialogs(driver, execute_in_page, message):
'https://hydril.la/', 'resource', 'someresource')
assert_dlg(['conf_buts'],
- 'Resource someresource was served using unsupported Hydrilla API version. You might need to update Haketilo.')
+ 'Resource someresource was served using a nonconforming response format.')
elif message == 'indexeddb_error_item':
execute_in_page(
'''