Skip to content

Commit

Permalink
test: version attribute from meta tags are collections
Browse files Browse the repository at this point in the history
  • Loading branch information
s-pace committed Sep 3, 2020
1 parent fd99732 commit 0792116
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions scraper/src/tests/default_strategy/meta_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ def test_meta_version(self):
# Then

assert len(actual) == 4
assert actual[0]['version'] == "1.2.3"
assert actual[1]['version'] == "1.2.3"
assert actual[2]['version'] == "1.2.3"
assert actual[3]['version'] == "1.2.3"
assert actual[0]['version'] == ["1.2.3"]
assert actual[1]['version'] == ["1.2.3"]
assert actual[2]['version'] == ["1.2.3"]
assert actual[3]['version'] == ["1.2.3"]

def test_meta_numbered_version(self):
# Given
Expand Down Expand Up @@ -156,8 +156,8 @@ def test_meta_numbered_version(self):
# Then

assert len(actual) == 2
assert actual[0]['version'] == "1.0"
assert actual[1]['version'] != 1
assert actual[0]['version'] == ["1.0"]
assert actual[1]['version'] != [1]

def test_meta_decimal_version(self):
# Given
Expand Down Expand Up @@ -187,9 +187,9 @@ def test_meta_decimal_version(self):
# Then

assert len(actual) == 2
assert actual[0]['version'] == "5.20"
assert actual[0]['version'] != "5.2"
assert actual[1]['version'] != 5.2
assert actual[0]['version'] == ["5.20"]
assert actual[0]['version'] != ["5.2"]
assert actual[1]['version'] != [5.2]

def test_meta_escaped_string(self):
# Given
Expand Down

0 comments on commit 0792116

Please sign in to comment.