Skip to content

Commit

Permalink
Merge pull request #1021 from scrapinghub/fix_tests
Browse files Browse the repository at this point in the history
Fix test_viewport_size_validation test
  • Loading branch information
kmike committed Apr 15, 2020
2 parents 1b6bad0 + b3d4c1c commit 9446ad2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions splash/tests/test_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -3319,12 +3319,12 @@ def test_viewport_size_validation(self):
('{100, "a"}', 'a number is required'),
('{100, {}}', 'a number is required'),

('{100, -1}', 'Viewport is out of range'),
('{100, 0}', 'Viewport is out of range'),
('{100, 99999}', 'Viewport is out of range'),
('{1, -100}', 'Viewport is out of range'),
('{0, 100}', 'Viewport is out of range'),
('{99999, 100}', 'Viewport is out of range'),
('{100, -1}', 'Viewport.* is out of range.*'),
('{100, 0}', 'Viewport.* is out of range.*'),
('{100, 99999}', 'Viewport.* is out of range.*'),
('{1, -100}', 'Viewport.* is out of range.*'),
('{0, 100}', 'Viewport.* is out of range.*'),
('{99999, 100}', 'Viewport.* is out of range.*'),
]

def run_test(size_str):
Expand Down

0 comments on commit 9446ad2

Please sign in to comment.