aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_upstream.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_upstream.py b/tests/test_upstream.py
index 38cba54..3c64660 100644
--- a/tests/test_upstream.py
+++ b/tests/test_upstream.py
@@ -37,6 +37,7 @@ from sb_builder import upstream # noqa: E402
app = QApplication.instance() or QApplication([])
LOG = "\n".join([
'{"name": "borgbackup", "version": "1.4.5", "event": "updated", "level": "info"}',
+ '{"name": "exploitdb", "version": "2026-10-14", "event": "updated", "level": "info"}',
'{"name": "bogus", "event": "unexpected error happened", "error": "HTTPError(404)", "level": "error"}',
'{"name": "bogus", "event": "no-result", "error": "later", "level": "error"}',
'not json',
@@ -71,7 +72,8 @@ class UpstreamTest(unittest.TestCase):
self.assertEqual(tomllib.load(f)["__config__"], {"keyfile": keys})
def test_parse_log(self):
- self.assertEqual(upstream.parse_log(LOG), ({"borgbackup": "1.4.5"}, {"bogus": "HTTPError(404)"}))
+ self.assertEqual(upstream.parse_log(LOG), ({"borgbackup": "1.4.5", "exploitdb": "2026_10_14"},
+ {"bogus": "HTTPError(404)"}))
def test_state(self):
names = {"a", "b", "c"}