mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
move test_do_not_archive
This commit is contained in:
parent
b554831179
commit
b2672ab2f4
@ -1176,13 +1176,6 @@ def test_tor_onion(archiving_proxies, warcprox_):
|
|||||||
# wait for postfetch chain
|
# wait for postfetch chain
|
||||||
wait(lambda: warcprox_.proxy.running_stats.urls - urls_before == 2)
|
wait(lambda: warcprox_.proxy.running_stats.urls - urls_before == 2)
|
||||||
|
|
||||||
def test_do_not_archive(warcprox_):
|
|
||||||
recorded_url = warcprox.RecordedUrl
|
|
||||||
assert warcprox_._should_archive(recorded_url) == True
|
|
||||||
|
|
||||||
recorded_url.do_not_archive = True
|
|
||||||
assert warcprox_._should_archive(recorded_url) == False
|
|
||||||
|
|
||||||
def test_missing_content_length(archiving_proxies, http_daemon, https_daemon, warcprox_):
|
def test_missing_content_length(archiving_proxies, http_daemon, https_daemon, warcprox_):
|
||||||
urls_before = warcprox_.proxy.running_stats.urls
|
urls_before = warcprox_.proxy.running_stats.urls
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user