From 44861230a58f5e8fa80f6d1dd0921d0e106df980 Mon Sep 17 00:00:00 2001 From: Akash Mahanty Date: Thu, 17 Feb 2022 23:42:43 +0530 Subject: [PATCH] fix codeql warnings, nothing to worry about here. --- tests/test_cdx_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_cdx_api.py b/tests/test_cdx_api.py index 777e1a3..b7f28c2 100644 --- a/tests/test_cdx_api.py +++ b/tests/test_cdx_api.py @@ -66,7 +66,7 @@ def test_c() -> None: timestamp = snapshot.timestamp break - assert "google.com" in archive_url + assert str(archive_url).find("google.com") assert "20101010" in timestamp @@ -88,5 +88,5 @@ def test_d() -> None: count = 0 for snapshot in snapshots: count += 1 - assert "akamhy.github.io" in snapshot.archive_url + assert str(snapshot.archive_url).find("akamhy.github.io") assert count > 50