diff --git a/tests/functional/test_albums.py b/tests/functional/test_albums.py index 2b1b21f..276225a 100644 --- a/tests/functional/test_albums.py +++ b/tests/functional/test_albums.py @@ -63,11 +63,6 @@ class TestAlbums(test_base.TestBase): for photo in self.photos: self.assertIn(photo.id, [p.id for p in album.photos]) - def test_form(self): - """ If album.form gets implemented, write a test! """ - with self.assertRaises(NotImplementedError): - self.client.album.form(None) - def test_add_photos(self): """ If album.add_photos gets implemented, write a test! """ with self.assertRaises(NotImplementedError): diff --git a/tests/functional/test_photos.py b/tests/functional/test_photos.py index 6a7577e..19f4bb5 100644 --- a/tests/functional/test_photos.py +++ b/tests/functional/test_photos.py @@ -47,16 +47,6 @@ class TestPhotos(test_base.TestBase): self._delete_all() self._create_test_photos() - def test_edit(self): - """ Check that the edit request returns an HTML form """ - # Test using the Trovebox class - html = self.client.photo.edit(self.photos[0]) - self.assertIn("
"}) - result = self.client.photo.edit(self.test_photos[0]) - mock_get.assert_called_with("/photo/1a/edit.json") - self.assertEqual(result, "") - - @mock.patch.object(trovebox.Trovebox, 'get') - def test_photo_edit_id(self, mock_get): - """Check that a the photo edit endpoint is working when using an ID""" - mock_get.return_value = self._return_value({"markup": ""}) - result = self.client.photo.edit("1a") - mock_get.assert_called_with("/photo/1a/edit.json") - self.assertEqual(result, "") - - @mock.patch.object(trovebox.Trovebox, 'get') - def test_photo_object_edit(self, mock_get): - """ - Check that a the photo edit endpoint is working - when using the photo object directly - """ - mock_get.return_value = self._return_value({"markup": ""}) - result = self.test_photos[0].edit() - mock_get.assert_called_with("/photo/1a/edit.json") - self.assertEqual(result, "") - class TestPhotoReplace(TestPhotos): @mock.patch.object(trovebox.Trovebox, 'post') def test_photo_replace(self, _): diff --git a/trovebox/api/api_album.py b/trovebox/api/api_album.py index eaa147b..fca8cc7 100644 --- a/trovebox/api/api_album.py +++ b/trovebox/api/api_album.py @@ -43,10 +43,6 @@ class ApiAlbum(ApiBase): album = Album(self._client, {"id": album}) return album.delete(**kwds) - def form(self, album, **kwds): - """ Not yet implemented """ - raise NotImplementedError() - # TODO: Should be just "add" def add_photos(self, album, photos, **kwds): """ Not yet implemented """ diff --git a/trovebox/api/api_photo.py b/trovebox/api/api_photo.py index 885ac61..eca7f0c 100644 --- a/trovebox/api/api_photo.py +++ b/trovebox/api/api_photo.py @@ -80,16 +80,6 @@ class ApiPhoto(ApiBase): # def delete_source(self, photo, **kwds): - def edit(self, photo, **kwds): - """ - Endpoint: /photo/