diff --git a/changedetectionio/tests/proxy_socks5/test_socks5_proxy.py b/changedetectionio/tests/proxy_socks5/test_socks5_proxy.py index 99b6d54d1..69da88b77 100644 --- a/changedetectionio/tests/proxy_socks5/test_socks5_proxy.py +++ b/changedetectionio/tests/proxy_socks5/test_socks5_proxy.py @@ -84,10 +84,12 @@ def test_socks5(client, live_server, measure_memory_usage, datastore_path): # PROXY CHECKER WIDGET CHECK - this needs more checking uuid = next(iter(live_server.app.config['DATASTORE'].data['watching'])) - res = client.get( + # POST only - it kicks off real fetches through every configured proxy + res = client.post( url_for("check_proxies.start_check", uuid=uuid), follow_redirects=True ) + assert res.status_code == 200 # It's probably already finished super fast :( #assert b"RUNNING" in res.data diff --git a/changedetectionio/tests/visualselector/test_fetch_data.py b/changedetectionio/tests/visualselector/test_fetch_data.py index 88825fe2b..939889b98 100644 --- a/changedetectionio/tests/visualselector/test_fetch_data.py +++ b/changedetectionio/tests/visualselector/test_fetch_data.py @@ -205,8 +205,8 @@ def test_browsersteps_edit_UI_startsession(client, live_server, measure_memory_u uuid = client.application.config.get('DATASTORE').add_watch(url=test_url, extras={'fetch_backend': 'html_webdriver', 'paused': True}) - # Test starting a browsersteps session - res = client.get( + # Test starting a browsersteps session (POST only - it spins up a real browser) + res = client.post( url_for("browser_steps.browsersteps_start_session", uuid=uuid), follow_redirects=True )