From 1cda90c0bcc36c3436befbf372aad8ccbfa64ab0 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Fri, 1 Nov 2024 21:45:28 +0100 Subject: [PATCH] Fixed tests --- test/test_extension.py | 5 +++-- test/test_wikidata_property.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/test_extension.py b/test/test_extension.py index cf0e815..505ffcf 100644 --- a/test/test_extension.py +++ b/test/test_extension.py @@ -1,10 +1,11 @@ -import pytest import aenum +import pytest import socials_util + def test_re_social_path_validation(): - with pytest.raises(ValueError): + with pytest.raises(ValueError, match='Redundant www: www.example.org'): socials_util.re_social_path('www.example.org') diff --git a/test/test_wikidata_property.py b/test/test_wikidata_property.py index 909a26a..79303af 100644 --- a/test/test_wikidata_property.py +++ b/test/test_wikidata_property.py @@ -1,4 +1,4 @@ -import wikidata +import wikidata.client import socials_util