mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-09-24 22:36:33 +00:00
test tweaks
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Test the built package works basically. (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been cancelled
ChangeDetection.io App Test / lint-code (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-10 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-11 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-12 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-13 (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Test the built package works basically. (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been cancelled
ChangeDetection.io App Test / lint-code (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-10 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-11 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-12 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-13 (push) Has been cancelled
This commit is contained in:
+6
@@ -206,6 +206,12 @@ $(function() {
|
||||
html += '<div class="detail-row"><span class="detail-label">Next Retry:</span>';
|
||||
html += `<span class="detail-value">${event.retry_at_formatted}</span></div>`;
|
||||
}
|
||||
|
||||
// Task ID
|
||||
if (event.id) {
|
||||
html += '<div class="detail-row"><span class="detail-label">Task ID:</span>';
|
||||
html += `<span class="detail-value"><code>${event.id}</code></span></div>`;
|
||||
}
|
||||
html += '</div>';
|
||||
|
||||
// Watch section
|
||||
|
||||
@@ -911,8 +911,8 @@ def test_delivered_notifications_appear_in_dashboard(client, live_server, measur
|
||||
# Create a test endpoint for the gets:// notification to call
|
||||
test_notification_endpoint = url_for('test_notification_endpoint', _external=True, _scheme='http')
|
||||
|
||||
# Use gets:// URL which will succeed
|
||||
working_notification_url = f"gets://{test_notification_endpoint.replace('http://', '')}"
|
||||
# Use get:// (not gets://) to avoid SSL for HTTP-only test server
|
||||
working_notification_url = f"get://{test_notification_endpoint.replace('http://', '')}"
|
||||
|
||||
logging.info(f"Setting up watch with working notification URL: {working_notification_url}")
|
||||
|
||||
@@ -935,13 +935,17 @@ def test_delivered_notifications_appear_in_dashboard(client, live_server, measur
|
||||
assert b"Updated watch." in res.data
|
||||
logging.info("✓ Watch updated with notification settings")
|
||||
|
||||
# Wait for any pending checks to complete
|
||||
wait_for_all_checks(client)
|
||||
|
||||
# Trigger a change
|
||||
set_modified_response(datastore_path=datastore_path)
|
||||
|
||||
# Trigger a recheck that will send notification
|
||||
res = client.get(url_for("ui.form_watch_checknow"), follow_redirects=True)
|
||||
# Just verify we got a response (the check may queue or run immediately)
|
||||
assert res.status_code == 200
|
||||
assert b'Queued 1 watch for rechecking.' in res.data
|
||||
|
||||
# Wait for the check to complete
|
||||
wait_for_all_checks(client)
|
||||
|
||||
logging.info("Waiting for notification to be delivered...")
|
||||
|
||||
Reference in New Issue
Block a user