Skip to content

Commit f1672d2

Browse files
committed
test: fix logger test
1 parent 1c31e64 commit f1672d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hydrodiy/io/tests/test_hyio_iutils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def test_get_logger():
146146
with open(flog2, "r") as fl:
147147
txt = fl.readlines()
148148
expected = ["@@@ Process started @@@"]+mess+\
149-
["@@@ Process completed @@@"]
149+
["", "@@@ Process completed @@@"]
150150
assert expected == [t.strip() for t in txt]
151151

152152
# Close log file handler and delete files
@@ -181,7 +181,7 @@ def test_get_logger_contextual():
181181
ck = bool(re.search("@@@ Process started @@@", txt[0]))
182182
ck &= bool(re.search("\\{ context1 \\}", txt[1]))
183183
ck &= bool(re.search("\\{ context2 \\}", txt[2]))
184-
ck &= bool(re.search("@@@ Process completed @@@", txt[3]))
184+
ck &= bool(re.search("@@@ Process completed @@@", txt[4]))
185185
assert ck
186186

187187
logger.handlers[1].close()

0 commit comments

Comments
 (0)