]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
fix content_type on test_api_create_storage_path
authorMichael Shamoon <4887959+shamoon@users.noreply.github.com>
Mon, 13 Jun 2022 23:05:24 +0000 (16:05 -0700)
committerTrenton Holmes <holmes.trenton@gmail.com>
Sat, 2 Jul 2022 14:19:22 +0000 (16:19 +0200)
src/documents/tests/test_api.py

index 8886372c2e41f8e314242879dd4468634f80ef1f..53c80fd1b1291d10f65806dd428b9d954d483380 100644 (file)
@@ -2599,8 +2599,6 @@ class TestApiStoragePaths(DirectoriesMixin, APITestCase):
         self.assertEqual(resp_storage_path["id"], self.sp1.id)
         self.assertEqual(resp_storage_path["path"], self.sp1.path)
 
-    # TODO: Need to investigate and fix
-    @pytest.mark.skip(reason="Return 400, unsure as to why")
     def test_api_create_storage_path(self):
         response = self.client.post(
             self.ENDPOINT,
@@ -2610,6 +2608,6 @@ class TestApiStoragePaths(DirectoriesMixin, APITestCase):
                     "path": "Somewhere/{asn}",
                 },
             ),
-            format="json",
+            content_type="application/json",
         )
         self.assertEqual(response.status_code, 201)