mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-07-21 14:09:00 -04:00
ok seriously tests
This commit is contained in:
parent
05f8ab3495
commit
fc05cac338
1 changed files with 3 additions and 4 deletions
|
@ -454,8 +454,7 @@ def test_seed_redirect(httpd):
|
||||||
site = brozzler.Site(rr, {
|
site = brozzler.Site(rr, {
|
||||||
'seed': 'http://localhost:%s/site5/redirect/' % httpd.server_port,
|
'seed': 'http://localhost:%s/site5/redirect/' % httpd.server_port,
|
||||||
'warcprox_meta': {'captures-table-extra-fields':{'test_id':test_id}}})
|
'warcprox_meta': {'captures-table-extra-fields':{'test_id':test_id}}})
|
||||||
assert site.scope == {
|
assert site.scope == {'accepts': [{'ssurt': ('localhost,//%s:http:/site5/redirect/' % httpd.server_port).encode('ascii')}]}
|
||||||
'accepts': [{'ssurt': b'localhost,//%s:http:/site5/redirect/' % httpd.server_port}]}
|
|
||||||
|
|
||||||
frontier = brozzler.RethinkDbFrontier(rr)
|
frontier = brozzler.RethinkDbFrontier(rr)
|
||||||
brozzler.new_site(frontier, site)
|
brozzler.new_site(frontier, site)
|
||||||
|
@ -480,8 +479,8 @@ def test_seed_redirect(httpd):
|
||||||
|
|
||||||
# check that scope has been updated properly
|
# check that scope has been updated properly
|
||||||
assert site.scope == {'accepts': [
|
assert site.scope == {'accepts': [
|
||||||
{'ssurt': b'localhost,//%s:http:/site5/redirect/' % httpd.server_port},
|
{'ssurt': ('localhost,//%s:http:/site5/redirect/' % httpd.server_port).encode('ascii')},
|
||||||
{'ssurt': b'localhost,//%s:http:/site5/destination/' % httpd.server_port}]}
|
{'ssurt': ('localhost,//%s:http:/site5/destination/' % httpd.server_port).encode('ascii')}]}
|
||||||
|
|
||||||
def test_hashtags(httpd):
|
def test_hashtags(httpd):
|
||||||
test_id = 'test_hashtags-%s' % datetime.datetime.utcnow().isoformat()
|
test_id = 'test_hashtags-%s' % datetime.datetime.utcnow().isoformat()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue