Closed gallardoalba closed 1 year ago
Not sure what is the problem; it seems to be due to the number of assertions:
for ta in test_assert:
assertions = test.findall(ta)
if len(assertions) == 0:
continue
if len(assertions) > 1:
lint_ctx.error(f"Test {test_idx}: More than one {ta} found. Only the first is considered.")
has_test = True
_check_asserts(test_idx, assertions, lint_ctx)
_check_asserts(test_idx, test.findall(".//assert_contents"), lint_ctx)
But it does not contain more than one assertion @bgruening. Or is it by test? In that case, I don't find that improvement a real improve :D
linting is getting stricter :)