mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2025-12-16 21:18:15 +00:00
* Re #65 - Append BASE_URL env var to the notification if it is set
This commit is contained in:
@@ -54,6 +54,7 @@ def test_check_notification(client, live_server):
|
||||
# Did the front end see it?
|
||||
res = client.get(
|
||||
url_for("index"))
|
||||
|
||||
assert bytes("just now".encode('utf-8')) in res.data
|
||||
|
||||
|
||||
@@ -61,6 +62,11 @@ def test_check_notification(client, live_server):
|
||||
res = client.get(
|
||||
url_for("test_notification_counter"),
|
||||
)
|
||||
print (res.data)
|
||||
|
||||
assert bytes("we hit it".encode('utf-8')) in res.data
|
||||
|
||||
# Did we see the URL that had a change, in the notification?
|
||||
assert bytes("test-endpoint".encode('utf-8')) in res.data
|
||||
|
||||
# Re #65 - did we see our foobar.com BASE_URL ?
|
||||
assert bytes("https://foobar.com".encode('utf-8')) in res.data
|
||||
|
||||
Reference in New Issue
Block a user