Skip to content

Commit

Permalink
fixed test with gh actions only data
Browse files Browse the repository at this point in the history
  • Loading branch information
DinisCruz committed Jan 7, 2024
1 parent b68d6bc commit 175460c
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions tests/utils/trace/test_Trace_Call.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,19 @@ def an_temp_file():

an_temp_file()

assert self.trace_call.stats() == Trace_Call__Stats(event_call = 97 ,
event_exception = 4 ,
event_line = 511 ,
event_return = 95 ,
event_unknown = 0 )
if in_github_action():
expected_stats = dict(event_call = 97 ,
event_exception = 4 ,
event_line = 481 ,
event_return = 96 ,
event_unknown = 0 )
else:
expected_stats = dict(event_call = 97 ,
event_exception = 4 ,
event_line = 511 ,
event_return = 95 ,
event_unknown = 0 )
assert self.trace_call.stats() == Trace_Call__Stats(**expected_stats)

with patch('builtins.print') as builtins_print:
view_model = self.trace_view_model.create(self.trace_call.stack)
Expand Down

0 comments on commit 175460c

Please sign in to comment.