mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-23 10:39:25 -05:00
Update test_api_custom_fields.py
This commit is contained in:
parent
251566691a
commit
652781a3df
@ -280,11 +280,12 @@ class TestCustomFieldsAPI(DirectoriesMixin, APITestCase):
|
|||||||
def test_custom_field_select_old_version(self):
|
def test_custom_field_select_old_version(self):
|
||||||
"""
|
"""
|
||||||
GIVEN:
|
GIVEN:
|
||||||
- Select custom field exists with old version of select options
|
- Nothing
|
||||||
WHEN:
|
WHEN:
|
||||||
- API post request is made for custom fields with api version header < 7
|
- API post request is made for custom fields with api version header < 7
|
||||||
- API get request is made for custom fields with api version header < 7
|
- API get request is made for custom fields with api version header < 7
|
||||||
THEN:
|
THEN:
|
||||||
|
- The select options are created with unique ids
|
||||||
- The select options are returned in the old format
|
- The select options are returned in the old format
|
||||||
"""
|
"""
|
||||||
resp = self.client.post(
|
resp = self.client.post(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user