Commit 4c96ea9 1 parent 49d0705 commit 4c96ea9 Copy full SHA for 4c96ea9
File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,8 @@ def started(self):
126
126
self .info ("@@@ Process started @@@" )
127
127
128
128
def completed (self ):
129
+ self .context = ""
130
+ self .info ("" )
129
131
self .info ("@@@ Process completed @@@" )
130
132
131
133
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ def test_get_logger():
146
146
with open (flog2 , "r" ) as fl :
147
147
txt = fl .readlines ()
148
148
expected = ["@@@ Process started @@@" ]+ mess + \
149
- ["@@@ Process completed @@@" ]
149
+ ["" , " @@@ Process completed @@@" ]
150
150
assert expected == [t .strip () for t in txt ]
151
151
152
152
# Close log file handler and delete files
@@ -181,7 +181,7 @@ def test_get_logger_contextual():
181
181
ck = bool (re .search ("@@@ Process started @@@" , txt [0 ]))
182
182
ck &= bool (re .search ("\\ { context1 \\ }" , txt [1 ]))
183
183
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 ]))
185
185
assert ck
186
186
187
187
logger .handlers [1 ].close ()
You can’t perform that action at this time.
0 commit comments