Exemplo n.º 1
0
 def test_get_all_images_by_username(self):
     images = model_access.get_all_images()
     self.assertIsNotNone(images)
Exemplo n.º 2
0
 def get_queryset(self):
     return model_access.get_all_images(self.request.user.username)
Exemplo n.º 3
0
 def get_queryset(self):
     return model_access.get_all_images(self.request.user.username)
Exemplo n.º 4
0
 def test_get_all_images_by_username(self):
     images = model_access.get_all_images()
     self.assertIsNotNone(images)
Exemplo n.º 5
0
 def get_queryset(self):
     return model_access.get_all_images()
Exemplo n.º 6
0
    def test__get_all_images(self):
        results = list(model_access.get_all_images().order_by("id"))

        self.assertListEqual(results, self.images)
Exemplo n.º 7
0
 def get_queryset(self):
     return model_access.get_all_images()