mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-11 10:00:48 -05:00
fix content_type on test_api_create_storage_path
This commit is contained in:
parent
ee2847cfea
commit
e32cb12ad7
@ -2599,8 +2599,6 @@ class TestApiStoragePaths(DirectoriesMixin, APITestCase):
|
|||||||
self.assertEqual(resp_storage_path["id"], self.sp1.id)
|
self.assertEqual(resp_storage_path["id"], self.sp1.id)
|
||||||
self.assertEqual(resp_storage_path["path"], self.sp1.path)
|
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):
|
def test_api_create_storage_path(self):
|
||||||
response = self.client.post(
|
response = self.client.post(
|
||||||
self.ENDPOINT,
|
self.ENDPOINT,
|
||||||
@ -2610,6 +2608,6 @@ class TestApiStoragePaths(DirectoriesMixin, APITestCase):
|
|||||||
"path": "Somewhere/{asn}",
|
"path": "Somewhere/{asn}",
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
format="json",
|
content_type="application/json",
|
||||||
)
|
)
|
||||||
self.assertEqual(response.status_code, 201)
|
self.assertEqual(response.status_code, 201)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user