Spaces:
Paused
Paused
Download changedetectionio/tests/proxy_list/test_proxy.py from minhpn/changedetection: direct link, hf CLI and curl.
- Browser
- Download file 752 Bytes
-
https://huggingface.co/spaces/minhpn/changedetection/resolve/main/changedetectionio/tests/proxy_list/test_proxy.py
- Command line
-
hf download hf://spaces/minhpn/changedetection/changedetectionio/tests/proxy_list/test_proxy.py
-
curl -L -o test_proxy.py https://huggingface.co/spaces/minhpn/changedetection/resolve/main/changedetectionio/tests/proxy_list/test_proxy.py
752 Bytes
| #!/usr/bin/env python3 | |
| import time | |
| from flask import url_for | |
| from ..util import live_server_setup, wait_for_all_checks, extract_UUID_from_client | |
| # just make a request, we will grep in the docker logs to see it actually got called | |
| def test_check_basic_change_detection_functionality(client, live_server, measure_memory_usage): | |
| # live_server_setup(live_server) # Setup on conftest per function | |
| res = client.post( | |
| url_for("imports.import_page"), | |
| # Because a URL wont show in squid/proxy logs due it being SSLed | |
| # Use plain HTTP or a specific domain-name here | |
| data={"urls": "http://one.changedetection.io"}, | |
| follow_redirects=True | |
| ) | |
| assert b"1 Imported" in res.data | |
| wait_for_all_checks(client) | |