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

        self.assertListEqual(results, self.images)
Example #7
0
 def get_queryset(self):
     return model_access.get_all_images()