Fix bugreport command section extraction

This commit is contained in:
Janik Besendorf
2026-08-22 14:20:59 +02:00
parent dac4acb180
commit dc0650bf76
4 changed files with 43 additions and 22 deletions
+9
View File
@@ -39,3 +39,12 @@ class TestGetPropArtifact:
assert len(gp.alertstore.alerts) == 0
gp.check_indicators()
assert len(gp.alertstore.alerts) == 1
def test_empty_values_and_invalid_lines(self):
gp = GetProp()
gp.parse("[empty]: []\n[valid]: [value]\n0\n[broken]: [value")
assert gp.results == [
{"name": "empty", "value": ""},
{"name": "valid", "value": "value"},
]