From 079211657549d13098291bb97eb7e1bb558d5688 Mon Sep 17 00:00:00 2001 From: s-pace Date: Thu, 3 Sep 2020 12:37:43 +0200 Subject: [PATCH] test: version attribute from meta tags are collections --- .../src/tests/default_strategy/meta_test.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/scraper/src/tests/default_strategy/meta_test.py b/scraper/src/tests/default_strategy/meta_test.py index 83a93fa7..6123a328 100644 --- a/scraper/src/tests/default_strategy/meta_test.py +++ b/scraper/src/tests/default_strategy/meta_test.py @@ -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 @@ -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 @@ -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