Skip to content

Commit c367183

Browse files
committed
Fix string concatenation issues in test assertions
1 parent 6dcf4aa commit c367183

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_segmentcollection.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def message():
188188

189189

190190
def test_empty_interchange(interchange):
191-
assert str(interchange) == ("UNB+UNOC:1+1234+3333+200102:2212+42'" "UNZ+0+42'")
191+
assert str(interchange) == ("UNB+UNOC:1+1234+3333+200102:2212+42'UNZ+0+42'")
192192

193193

194194
def test_empty_interchange_w_extra_header():
@@ -201,12 +201,12 @@ def test_empty_interchange_w_extra_header():
201201
extra_header_elements=[["66", "2"], "ZZ"],
202202
)
203203

204-
assert str(i) == ("UNB+UNOC:1+1234+3333+200102:2212+42+66:2+ZZ'" "UNZ+0+42'")
204+
assert str(i) == ("UNB+UNOC:1+1234+3333+200102:2212+42+66:2+ZZ'UNZ+0+42'")
205205

206206

207207
def test_empty_interchange_from_str():
208-
i = Interchange.from_str("UNB+UNOC:1+1234+3333+200102:2212+42'" "UNZ+0+42'")
209-
assert str(i) == ("UNB+UNOC:1+1234+3333+200102:2212+42'" "UNZ+0+42'")
208+
i = Interchange.from_str("UNB+UNOC:1+1234+3333+200102:2212+42'UNZ+0+42'")
209+
assert str(i) == ("UNB+UNOC:1+1234+3333+200102:2212+42'UNZ+0+42'")
210210

211211

212212
def test_empty_interchange_w_una():
@@ -217,7 +217,7 @@ def test_empty_interchange_w_una():
217217
Segment("UNZ", "0", "42"),
218218
]
219219
)
220-
assert str(i) == ("UNA:+,? '" "UNB+UNOC:1+1234+3333+200102:2212+42'" "UNZ+0+42'")
220+
assert str(i) == ("UNA:+,? '" "UNB+UNOC:1+1234+3333+200102:2212+42'UNZ+0+42'")
221221

222222

223223
def test_interchange_messages(interchange, message):

0 commit comments

Comments
 (0)