Exemplo n.º 1
0
 def setUp(self):
     self.user = get_user()
     self.client = APIClient()
     self.client.force_authenticate(self.user)
     self.subject = StatusReport(**STATUS_REPORT_TEST)
     self.subject.save()
     self.row = StatusReportRow(report=self.subject,
                                **STATUS_REPORT_ROW_TEST)
     self.row.save()
Exemplo n.º 2
0
 def setUp(self):
     Graph(name='ping', options='{"option1":"value"}').save()
     Graph(name='pong', options='{"o1":true, "o2":"f**k"}').save()
     self.user = get_user()
     self.client = APIClient()
     self.client.force_authenticate(self.user)
Exemplo n.º 3
0
 def setUp(self):
     self.user = get_user()
     self.client = APIClient()
     self.client.force_authenticate(self.user)
Exemplo n.º 4
0
 def setUp(self):
     self.tag = Tag(name="peperoni")
     self.tag.save()
     self.user = get_user()
     self.client = APIClient()
     self.client.force_authenticate(self.user)