Exemplo n.º 1
0
 def setUp(self):
     YataTestCase.setUp(self)
     c1 = self.new_context(title="C1")
     c1.save()
     c2 = self.new_context(title="C2")
     c2.save()
     self.response = self.client.get("/yata/")
Exemplo n.º 2
0
 def setUp(self):
     YataTestCase.setUp(self)
     t = self.new_task(description="something to do now", start_date=today())
     t.save()
     # Something in the future. Not just tomorrow, in case the test is run around midnight...
     t = self.new_task(description="something to do in two days", start_date=tomorrow(tomorrow()))
     t.save()
Exemplo n.º 3
0
 def setUp(self):
     YataTestCase.setUp(self)
     self.c1 = self.new_context(title="C1")
     self.c1.save()
     self.c2 = self.new_context(title="C2")
     self.c2.save()
     # Make sure we call the view first so that it saves a session
     self.client.get("/yata/")
Exemplo n.º 4
0
 def setUp(self):
     YataTestCase.setUp(self)
     t = self.new_task(description="Active")
     t.save()
     t = self.new_task(description="Done", done=True)
     t.save()
     # Make sure we call the view first so that it saves a session
     self.client.get("/yata/")
Exemplo n.º 5
0
 def setUp(self):
     YataTestCase.setUp(self)
     t = self.new_task(description="Not future")
     t.save()
     t = self.new_task(description="Future", start_date=tomorrow(tomorrow()))
     t.save()
     # Make sure we call the view first so that it saves a session
     self.client.get("/yata/")
Exemplo n.º 6
0
 def setUp(self):
     YataTestCase.setUp(self)
     c1 = self.new_context(title="C1")
     c1.save()
     c2 = self.new_context(title="C2")
     c2.save()
     t = self.new_task(description="In no context")
     t.save()
     t = self.new_task(description="In context 'C1'", context=c1)
     t.save()
     t = self.new_task(description="In context 'C2'", context=c2)
     t.save()
     # Make sure we call the view first so that it saves a session
     self.client.get("/yata/")
Exemplo n.º 7
0
 def setUp(self):
     YataTestCase.setUp(self)
     t = self.new_task(description="something to do")
     t.save()
Exemplo n.º 8
0
 def setUp(self):
     YataTestCase.setUp(self)
     self.response = self.client.get("/yata/")
Exemplo n.º 9
0
 def setUp(self):
     YataTestCase.setUp(self)
     t = self.new_task(description="UrlForActionIsProvidedToEditView")
     t.save()
Exemplo n.º 10
0
 def setUp(self):
     YataTestCase.setUp(self)
     t = self.new_task(description="something to do")
     t.save()
     t = self.new_task(description="something else", due_date=datetime.date(2011, 01, 19))