(self)
| 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 | |
| 102 | class test_schedule: |
nothing calls this directly
no test coverage detected