mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 16:40:03 +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',
|
||||
'--tag_objects={}'.format(tag_objects),
|
||||
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