aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-11-25 12:33:24 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-11-25 12:33:24 +0100
commitcff5637d2abcde86c87b870ef0c33037e46488fd (patch)
tree2bea83dee962f628f788c07c8ba5049df11a2dfb /tests
parent8cd8204a7464968280f9c72105edc585c2cf0a4f (diff)
downloadfuzzycat-cff5637d2abcde86c87b870ef0c33037e46488fd.tar.gz
fuzzycat-cff5637d2abcde86c87b870ef0c33037e46488fd.zip
test: log url
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cluster.py3
-rw-r--r--tests/test_verify.py5
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_cluster.py b/tests/test_cluster.py
index ef63882..ac1edac 100644
--- a/tests/test_cluster.py
+++ b/tests/test_cluster.py
@@ -6,8 +6,7 @@ import tempfile
import pytest
-from fuzzycat.cluster import (Cluster, release_key_title,
- release_key_title_normalized,
+from fuzzycat.cluster import (Cluster, release_key_title, release_key_title_normalized,
release_key_title_nysiis)
Case = collections.namedtuple("Case", 'input output')
diff --git a/tests/test_verify.py b/tests/test_verify.py
index 52ad65a..75e0277 100644
--- a/tests/test_verify.py
+++ b/tests/test_verify.py
@@ -8,6 +8,7 @@ from fuzzycat.verify import Status, compare
VERIFY_CSV = os.path.join(os.path.dirname(os.path.realpath(__file__)), "data/verify.csv")
RELEASE_ENTITIES_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "data/release")
+FATCAT_BASE_URL = 'https://fatcat.wiki/'
status_mapping = {
"Status.AMBIGUOUS": Status.AMBIGUOUS,
@@ -39,7 +40,9 @@ def test_compare():
pytest.fail("invalid test file, maybe missing a comma? {}".format(exc))
status, reason = compare(load_release_ident(a), load_release_ident(b))
if not expected_status or expected_status.lower() == "todo":
- logger.debug("skipping test {} {}: no result defined (we think {}, {})".format(a, b, status, reason))
+ logger.debug(
+ "skipping test {base}/release/{a} {base}/release/{b} -- no result defined (we think {status}, {reason})"
+ .format(a=a, b=b, base=FATCAT_BASE_URL, status=status, reason=reason))
assert status == status, "status: want {}, got {} for {} {}".format(
expected_status, status, a, b)
if expected_reason: