mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 00:49:49 +03:00
add test case when dict is passed
This commit is contained in:
parent
24d293f9bc
commit
91df8d29ab
|
@ -174,3 +174,10 @@ class GenerateSchemaTests(TestCase):
|
||||||
call_command('generateschema',
|
call_command('generateschema',
|
||||||
'--tag_objects={}'.format(tag_objects),
|
'--tag_objects={}'.format(tag_objects),
|
||||||
stdout=self.out)
|
stdout=self.out)
|
||||||
|
|
||||||
|
def test_rejects_invalid_dict_tag_objects(self):
|
||||||
|
tag_objects = '{"name": "pet", "description": "Pets operations"}'
|
||||||
|
with pytest.raises(AssertionError):
|
||||||
|
call_command('generateschema',
|
||||||
|
'--tag_objects={}'.format(tag_objects),
|
||||||
|
stdout=self.out)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user