Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
boogheta committed Aug 5, 2019
1 parent 00064a5 commit f6e8296
Showing 1 changed file with 27 additions and 14 deletions.
41 changes: 27 additions & 14 deletions test/suites/traversal_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,10 @@ def test_paginate_webentity_pagelinks(self):

# Fetching second two
self.assertEqual(
traph.paginate_webentity_pagelinks(1, prefixes, source_page_count=2,
pagination_token=build_pagination_token(0, ops_to_base4('CCLR'))),
traph.paginate_webentity_pagelinks(
1, prefixes, source_page_count=2,
pagination_token=build_pagination_token(0, ops_to_base4('CCLR'))
),
{
'done': True,
'count_sourcepages': 1,
Expand Down Expand Up @@ -576,8 +578,10 @@ def test_paginate_webentity_pagelinks(self):
)

self.assertEqual(
traph.paginate_webentity_pagelinks(1, prefixes, source_page_count=2,
pagination_token=build_pagination_token(0, ops_to_base4('CCLR'))),
traph.paginate_webentity_pagelinks(
1, prefixes, source_page_count=2,
pagination_token=build_pagination_token(0, ops_to_base4('CCLR'))
),
{
'done': False,
'count_sourcepages': 2,
Expand All @@ -588,8 +592,10 @@ def test_paginate_webentity_pagelinks(self):
)

self.assertEqual(
traph.paginate_webentity_pagelinks(1, prefixes, source_page_count=2,
pagination_token=build_pagination_token(1, ops_to_base4('CRL'))),
traph.paginate_webentity_pagelinks(
1, prefixes, source_page_count=2,
pagination_token=build_pagination_token(1, ops_to_base4('CRL'))
),
{
'done': True,
'count_sourcepages': 1,
Expand All @@ -600,8 +606,9 @@ def test_paginate_webentity_pagelinks(self):

# Fetching outbound links also
self.assertEqual(
traph.paginate_webentity_pagelinks(1, prefixes, source_page_count=10,
include_outbound=True),
traph.paginate_webentity_pagelinks(
1, prefixes, source_page_count=10, include_outbound=True
),
{
'done': True,
'count_sourcepages': 5,
Expand All @@ -612,8 +619,10 @@ def test_paginate_webentity_pagelinks(self):

# Fetching outbound links only, at once
self.assertEqual(
traph.paginate_webentity_pagelinks(1, prefixes, source_page_count=2,
include_outbound=True, include_internal=False),
traph.paginate_webentity_pagelinks(
1, prefixes, source_page_count=2,
include_outbound=True, include_internal=False
),
{
'done': True,
'count_sourcepages': 2,
Expand All @@ -624,8 +633,10 @@ def test_paginate_webentity_pagelinks(self):

# Fetching outbound links only, paginated
self.assertEqual(
traph.paginate_webentity_pagelinks(1, prefixes, source_page_count=1,
include_outbound=True, include_internal=False),
traph.paginate_webentity_pagelinks(
1, prefixes, source_page_count=1,
include_outbound=True, include_internal=False
),
{
'done': False,
'count_sourcepages': 1,
Expand All @@ -636,9 +647,11 @@ def test_paginate_webentity_pagelinks(self):
)

self.assertEqual(
traph.paginate_webentity_pagelinks(1, prefixes, source_page_count=1,
traph.paginate_webentity_pagelinks(
1, prefixes, source_page_count=1,
include_outbound=True, include_internal=False,
pagination_token=build_pagination_token(0, ops_to_base4('CCLR'))),
pagination_token=build_pagination_token(0, ops_to_base4('CCLR'))
),
{
'done': True,
'count_sourcepages': 1,
Expand Down

0 comments on commit f6e8296

Please sign in to comment.