diff --git a/tests/functional/test_photos.py b/tests/functional/test_photos.py index d00c689..8b561c4 100644 --- a/tests/functional/test_photos.py +++ b/tests/functional/test_photos.py @@ -202,11 +202,6 @@ class TestPhotos(test_base.TestBase): allowDuplicate=True) self.assertEqual(self.photos[0].hash, original_hash) - def test_dynamic_url(self): - """ If photo.dynamic_url gets implemented, write a test! """ - with self.assertRaises(NotImplementedError): - self.client.photo.dynamic_url(None) - def test_transform(self): """ Test photo rotation """ photo = self.photos[0] diff --git a/tests/unit/test_photos.py b/tests/unit/test_photos.py index 280e60d..c4ee610 100644 --- a/tests/unit/test_photos.py +++ b/tests/unit/test_photos.py @@ -446,25 +446,6 @@ class TestPhotoUploadFromUrl(TestPhotos): photo="test_url", title="Test") self.assertEqual(result.get_fields(), self.test_photos_dict[0]) -class TestPhotoDynamicUrl(TestPhotos): - @mock.patch.object(trovebox.Trovebox, 'get') - def test_photo_dynamic_url(self, _): - """ If photo.dynamic_url gets implemented, write a test! """ - with self.assertRaises(NotImplementedError): - self.client.photo.dynamic_url(self.test_photos[0]) - - @mock.patch.object(trovebox.Trovebox, 'get') - def test_photo_dynamic_url_id(self, _): - """ If photo.dynamic_url gets implemented, write a test! """ - with self.assertRaises(NotImplementedError): - self.client.photo.dynamic_url("1a") - - @mock.patch.object(trovebox.Trovebox, 'get') - def test_photo_object_dynamic_url(self, _): - """ If photo.dynamic_url gets implemented, write a test! """ - with self.assertRaises(NotImplementedError): - self.test_photos[0].dynamic_url() - class TestPhotoNextPrevious(TestPhotos): @mock.patch.object(trovebox.Trovebox, 'get') def test_photo_next_previous(self, mock_get): diff --git a/trovebox/api/api_photo.py b/trovebox/api/api_photo.py index caa67e5..dfc98ff 100644 --- a/trovebox/api/api_photo.py +++ b/trovebox/api/api_photo.py @@ -187,11 +187,6 @@ class ApiPhoto(ApiBase): **kwds)["result"] return Photo(self._client, result) - def dynamic_url(self, photo, **kwds): - """ Not yet implemented """ - raise NotImplementedError() - - # TODO: Add options def next_previous(self, photo, options=None, **kwds): """ Endpoint: /photo//nextprevious[/].json diff --git a/trovebox/objects/photo.py b/trovebox/objects/photo.py index af301a4..d2aaf19 100644 --- a/trovebox/objects/photo.py +++ b/trovebox/objects/photo.py @@ -81,10 +81,6 @@ class Photo(TroveboxObject): result = self._client.photo.view(self, options, **kwds) self._replace_fields(result.get_fields()) - def dynamic_url(self, **kwds): - """ Not implemented yet """ - raise NotImplementedError() - def next_previous(self, options=None, **kwds): """ Endpoint: /photo//nextprevious[/].json