diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-12-27 21:14:36 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-12-27 21:14:36 +0200 |
commit | f0274d0857afb8617ee6905bb6312afa6d1deb1b (patch) | |
tree | 7ca3ade67542e5690f98bfa7ccac977a86ef4f80 | |
parent | update needed pkgcore version (diff) | |
download | pkgcheck-f0274d0857afb8617ee6905bb6312afa6d1deb1b.tar.gz pkgcheck-f0274d0857afb8617ee6905bb6312afa6d1deb1b.tar.bz2 pkgcheck-f0274d0857afb8617ee6905bb6312afa6d1deb1b.zip |
sync with pkgcore's error message format
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r-- | testdata/data/repos/standalone/SourcingCheck/InvalidEapi/expected.json | 2 | ||||
-rw-r--r-- | tests/checks/test_metadata.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/testdata/data/repos/standalone/SourcingCheck/InvalidEapi/expected.json b/testdata/data/repos/standalone/SourcingCheck/InvalidEapi/expected.json index 78926e07..47baaac2 100644 --- a/testdata/data/repos/standalone/SourcingCheck/InvalidEapi/expected.json +++ b/testdata/data/repos/standalone/SourcingCheck/InvalidEapi/expected.json @@ -1,2 +1,2 @@ {"__class__": "InvalidEapi", "category": "SourcingCheck", "package": "InvalidEapi", "version": "0", "attr": "eapi", "msg": "EAPI '9999' is not supported"} -{"__class__": "InvalidEapi", "category": "SourcingCheck", "package": "InvalidEapi", "version": "1", "attr": "eapi", "msg": "invalid EAPI: 'invalid!'"} +{"__class__": "InvalidEapi", "category": "SourcingCheck", "package": "InvalidEapi", "version": "1", "attr": "eapi", "msg": "invalid EAPI 'invalid!'"} diff --git a/tests/checks/test_metadata.py b/tests/checks/test_metadata.py index f68fb6fa..cc074d93 100644 --- a/tests/checks/test_metadata.py +++ b/tests/checks/test_metadata.py @@ -430,7 +430,7 @@ class TestSourcingCheck(misc.ReportTestCase, misc.Tmpdir): """)) r = self.assertReport(check, self.repo) assert isinstance(r, metadata.InvalidEapi) - assert f"invalid EAPI: '{eapi}'" in str(r) + assert f"invalid EAPI '{eapi}'" in str(r) def test_sourcing_error(self): check = self.mk_check() |