MCPcopy
hub / github.com/celery/celery / test_event_uses_center

Method test_event_uses_center

t/unit/app/test_schedules.py:89–99  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

87 )
88
89 def test_event_uses_center(self):
90 s = solar('solar_noon', 60, 60, app=self.app)
91 for ev, is_center in s._use_center_l.items():
92 s.method = s._methods[ev]
93 s.is_center = s._use_center_l[ev]
94 try:
95 s.remaining_estimate(datetime.now(timezone.utc))
96 except TypeError:
97 pytest.fail(
98 f"{s.method} was called with 'use_center' which is not a "
99 "valid keyword for the function.")
100
101
102class test_schedule:

Callers

nothing calls this directly

Calls 5

solarClass · 0.90
failMethod · 0.80
itemsMethod · 0.45
remaining_estimateMethod · 0.45
nowMethod · 0.45

Tested by

no test coverage detected