From cd4f65741c105afb8aaa839c2a631777f60bf585 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Besson?= Date: Fri, 12 Jan 2024 17:21:06 +0000 Subject: [PATCH] Fix the assert by being less sensitive to the logging level --- test/integration/clitest/test_metadata.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/integration/clitest/test_metadata.py b/test/integration/clitest/test_metadata.py index 8e5e5c7e..b21d63a6 100644 --- a/test/integration/clitest/test_metadata.py +++ b/test/integration/clitest/test_metadata.py @@ -245,10 +245,9 @@ def test_deletebulkanns(self, capfd): o = self.invoke(capfd) assert "FileAnnotation:" in o - # Should be empty since it's deleted + # Should have no FileAnnotation since it's deleted o = self.invoke(capfd) - assert o == "" - assert len(o.strip()) == 0 + assert "FileAnnotation:" not in o @pytest.mark.parametrize('report', [False, True]) def test_measures(self, capfd, report):