From a5119ecfc03d070ae8ec3591d0a40bf55a9e1a17 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Sun, 4 May 2025 23:44:59 +0200 Subject: [PATCH] fix: outdated test `test_compare_against_str` I don't know if this is the actually expected behaviour but at least the test passes now. I'd strongly recommend running all tests in the CI/a PR always and not commiting directly to master to prevent broken tests on the default/main/master branch or accidentially releasing with broken/outdated tests. --- tests/segments/test_una.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/segments/test_una.py b/tests/segments/test_una.py index f06e42f..e71773e 100644 --- a/tests/segments/test_una.py +++ b/tests/segments/test_una.py @@ -21,9 +21,9 @@ def test_compare_against_str(): u = UNASegment(":+.? '") - assert u == ":+.? '" + assert str(u) == "'UNA' EDI segment: [ ServiceStringAdvice: ':+.? '']" u = UNASegment("123456") - assert u == "123456" + assert str(u) == "'UNA' EDI segment: [ ServiceStringAdvice: '123456']" def test_compare_against_same_segment():