disappearing interface after link safe
This commit is contained in:
@@ -454,6 +454,18 @@ def test_duplicate_link_check_is_authenticated_and_detects_existing_entry():
|
||||
assert check.json()['exists'] is True
|
||||
|
||||
|
||||
def test_link_save_reports_plugin_posting_errors():
|
||||
with patch('backend.app.api.links.plugin_manager.dispatch', return_value=[
|
||||
{'status': 'failed', 'plugin': 'mastodon', 'reason': 'HTTP 503: unavailable'},
|
||||
]):
|
||||
response = client.post('/api/links', headers=login_headers(), json={
|
||||
'title': 'Plugin error report',
|
||||
'url': 'https://example.com/plugin-error-report',
|
||||
})
|
||||
assert response.status_code == 201
|
||||
assert response.json()['plugin_errors'] == [{'plugin': 'mastodon', 'reason': 'HTTP 503: unavailable'}]
|
||||
|
||||
|
||||
def test_links_support_tags_and_tag_filtering():
|
||||
headers = login_headers()
|
||||
response = client.post('/api/links', headers=headers, json={
|
||||
|
||||
Reference in New Issue
Block a user