MCPcopy
hub / github.com/getredash/redash / test_removes_scheduling

Method test_removes_scheduling

tests/test_models.py:368–373  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

366 self.assertEqual(models.Widget.query.get(widget.id), None)
367
368 def test_removes_scheduling(self):
369 query = self.factory.create_query(schedule={"interval": "1", "until": None, "time": None, "day_of_week": None})
370
371 query.archive()
372
373 self.assertIsNone(query.schedule)
374
375 def test_deletes_alerts(self):
376 subscription = self.factory.create_alert_subscription()

Callers

nothing calls this directly

Calls 2

create_queryMethod · 0.80
archiveMethod · 0.80

Tested by

no test coverage detected