From c950ab5219b125b9872438bc8e86ff0fe76c3982 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 26 Dec 2022 09:29:22 +0100 Subject: [PATCH] archive debug output --- .github/workflows/test-only.yml | 11 ++++++++++- .../tests/proxy_list/test_select_custom_proxy.py | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-only.yml b/.github/workflows/test-only.yml index 93c6c108..5b468250 100644 --- a/.github/workflows/test-only.yml +++ b/.github/workflows/test-only.yml @@ -60,7 +60,6 @@ jobs: cd changedetectionio ./run_proxy_tests.sh cd .. - - name: Test changedetection.io container starts+runs basically without error run: | @@ -70,6 +69,16 @@ jobs: curl -s http://localhost:5556 |grep -q checkbox-uuid curl -s http://localhost:5556/rss|grep -q rss-specification + - name: Archive test artifacts + if: always() + uses: actions/upload-artifact@v3 + with: + name: debug-output + retention-days: 3 + path: | + /tmp/*html + + #export WEBDRIVER_URL=http://localhost:4444/wd/hub #pytest tests/fetchers/test_content.py #pytest tests/test_errorhandling.py \ No newline at end of file diff --git a/changedetectionio/tests/proxy_list/test_select_custom_proxy.py b/changedetectionio/tests/proxy_list/test_select_custom_proxy.py index c889e51c..ec3716cd 100644 --- a/changedetectionio/tests/proxy_list/test_select_custom_proxy.py +++ b/changedetectionio/tests/proxy_list/test_select_custom_proxy.py @@ -44,6 +44,8 @@ def test_select_custom(client, live_server): follow_redirects=True ) # We should see something via proxy + with open('/tmp/info.html', 'wb') as f: + f.write(res.data) assert b'HEAD' in res.data #