def setUp(self): super().setUp() mmodels.fill_mock(curtime=test_now) self.today = datetime.datetime(2014, 11, 10, tzinfo=utc) self.models = Models.from_settings() self.runs = Runs.from_db(self.models, ts_now=test_now) self.sel_runs = SelectedRuns() self.sel_runs.d0 = self.runs.get("ECMWF", datetime.datetime(2014, 11, 9, tzinfo=utc))
def setUp(self): super().setUp() mmodels.fill_mock(curtime=test_now)
def handle(self, **kw): print("This will delete all contents of simclog model and import tables. Continue (y/N)? ", end="") if input().lower() != "y": return mmodels.Model.objects.all().delete() mmodels.Import.objects.all().delete() mmodels.fill_mock(curtime=settings.MMIXER_MOCK_CURTIME)
def setUp(self): mmodels.fill_mock(curtime=test_now)
def setUp(self): mmodels.fill_mock(curtime=test_now) self.models = Models.from_settings() self.runs = Runs.from_db(self.models, ts_now=test_now)