Skip to content

Commit

Permalink
Fix flaky templatized call (apache#20843)
Browse files Browse the repository at this point in the history
  • Loading branch information
potiuk authored Jan 13, 2022
1 parent 2fdc233 commit ca030b9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/sensors/test_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ def test_python_callable_arguments_are_templatized(self):
task.run(start_date=DEFAULT_DATE, end_date=DEFAULT_DATE)

ds_templated = DEFAULT_DATE.date().isoformat()
# 2 calls: first: at start, second: before timeout
assert 2 == len(recorded_calls)
self._assert_calls_equal(
recorded_calls[0],
Call(
Expand Down Expand Up @@ -125,10 +123,6 @@ def test_python_callable_keyword_arguments_are_templatized(self):
with pytest.raises(AirflowSensorTimeout):
task.run(start_date=DEFAULT_DATE, end_date=DEFAULT_DATE)

# 2 calls: first: at start, second: before timeout
# But sometimes 1 is also OK if the system is "busy" - we anyhow only check the first one which
# will always be there
assert len(recorded_calls) >= 1
self._assert_calls_equal(
recorded_calls[0],
Call(
Expand Down

0 comments on commit ca030b9

Please sign in to comment.