mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-09-23 05:46:50 +00:00
Tweaks
This commit is contained in:
@@ -272,13 +272,11 @@ class ChangeDetectionStore(DatastoreUpdatesMixin, FileSavingDataStore):
|
||||
if include_default_watches:
|
||||
self.add_watch(
|
||||
url='https://news.ycombinator.com/',
|
||||
tag='Tech news',
|
||||
extras={'browser_profile': 'direct_http_requests'}
|
||||
tag='Tech news'
|
||||
)
|
||||
self.add_watch(
|
||||
url='https://changedetection.io/CHANGELOG.txt',
|
||||
tag='changedetection.io',
|
||||
extras={'browser_profile': 'direct_http_requests'}
|
||||
tag='changedetection.io'
|
||||
)
|
||||
|
||||
# Create changedetection.json immediately
|
||||
@@ -348,6 +346,8 @@ class ChangeDetectionStore(DatastoreUpdatesMixin, FileSavingDataStore):
|
||||
``settings.application.browser_profiles`` under their machine names.
|
||||
If no system-default browser profile is already stored, also sets
|
||||
``settings.application.browser_profile`` to the new profile.
|
||||
|
||||
NOTE: Most of this is largely for historical and testing purposes.
|
||||
"""
|
||||
from changedetectionio.model import browser_profile as bp
|
||||
from changedetectionio.strtobool import strtobool
|
||||
@@ -364,7 +364,7 @@ class ChangeDetectionStore(DatastoreUpdatesMixin, FileSavingDataStore):
|
||||
profile = bp.BrowserProfile(
|
||||
name=builtin.name,
|
||||
fetch_backend=builtin.fetch_backend,
|
||||
browser_connection_url=playwright_url,
|
||||
browser_connection_url=playwright_url.strip('"'),
|
||||
service_workers=service_workers,
|
||||
extra_delay=extra_delay,
|
||||
is_builtin=True,
|
||||
|
||||
@@ -108,7 +108,8 @@ def test_low_level_errors_clear_correctly(client, live_server, measure_memory_us
|
||||
b"nodename nor servname provided" in res.data or
|
||||
b"Temporary failure in name resolution" in res.data or
|
||||
b"Failed to establish a new connection" in res.data or
|
||||
b"Connection error occurred" in res.data
|
||||
b"Connection error occurred" in res.data or
|
||||
b"net::ERR_NAME_NOT_RESOLVED" in res.data
|
||||
)
|
||||
assert found_name_resolution_error
|
||||
|
||||
|
||||
Reference in New Issue
Block a user