Пример #1
0
 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))
Пример #2
0
 def setUp(self):
     super().setUp()
     mmodels.fill_mock(curtime=test_now)
Пример #3
0
 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)
Пример #4
0
 def setUp(self):
     mmodels.fill_mock(curtime=test_now)
Пример #5
0
 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)