mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-07-26 08:15:43 -04:00
tests: fix out of date frontier fixture
This commit is contained in:
parent
306e55d61a
commit
cb2ee89aee
1 changed files with 3 additions and 2 deletions
|
@ -68,6 +68,7 @@ def test_basics(rethinker):
|
||||||
"seeds": [{"url": "http://example.com"}, {"url": "https://example.org/"}]
|
"seeds": [{"url": "http://example.com"}, {"url": "https://example.org/"}]
|
||||||
},
|
},
|
||||||
"status": "ACTIVE",
|
"status": "ACTIVE",
|
||||||
|
"pdfs_only": False,
|
||||||
"starts_and_stops": [{"start": job.starts_and_stops[0]["start"], "stop": None}],
|
"starts_and_stops": [{"start": job.starts_and_stops[0]["start"], "stop": None}],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,11 +84,11 @@ def test_basics(rethinker):
|
||||||
"last_disclaimed": brozzler.EPOCH_UTC,
|
"last_disclaimed": brozzler.EPOCH_UTC,
|
||||||
"scope": {"accepts": [{"ssurt": "com,example,//http:/"}]},
|
"scope": {"accepts": [{"ssurt": "com,example,//http:/"}]},
|
||||||
"seed": "http://example.com",
|
"seed": "http://example.com",
|
||||||
"skip_ytdlp": None,
|
|
||||||
"starts_and_stops": [
|
"starts_and_stops": [
|
||||||
{"start": sites[0].starts_and_stops[0]["start"], "stop": None}
|
{"start": sites[0].starts_and_stops[0]["start"], "stop": None}
|
||||||
],
|
],
|
||||||
"status": "ACTIVE",
|
"status": "ACTIVE",
|
||||||
|
"video_capture": "ENABLE_VIDEO_CAPTURE",
|
||||||
}
|
}
|
||||||
assert sites[1] == {
|
assert sites[1] == {
|
||||||
"claimed": False,
|
"claimed": False,
|
||||||
|
@ -97,7 +98,6 @@ def test_basics(rethinker):
|
||||||
"last_disclaimed": brozzler.EPOCH_UTC,
|
"last_disclaimed": brozzler.EPOCH_UTC,
|
||||||
"scope": {"accepts": [{"ssurt": "org,example,//https:/"}]},
|
"scope": {"accepts": [{"ssurt": "org,example,//https:/"}]},
|
||||||
"seed": "https://example.org/",
|
"seed": "https://example.org/",
|
||||||
"skip_ytdlp": None,
|
|
||||||
"starts_and_stops": [
|
"starts_and_stops": [
|
||||||
{
|
{
|
||||||
"start": sites[1].starts_and_stops[0]["start"],
|
"start": sites[1].starts_and_stops[0]["start"],
|
||||||
|
@ -105,6 +105,7 @@ def test_basics(rethinker):
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
"status": "ACTIVE",
|
"status": "ACTIVE",
|
||||||
|
"video_capture": "ENABLE_VIDEO_CAPTURE",
|
||||||
}
|
}
|
||||||
|
|
||||||
pages = list(frontier.site_pages(sites[0].id))
|
pages = list(frontier.site_pages(sites[0].id))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue