mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 19:14:01 +03:00
converted generic relations assert to pytest style
This commit is contained in:
parent
abc62afddb
commit
cd3fd36d0e
|
@ -75,7 +75,7 @@ class TestGenericRelations(TestCase):
|
|||
'tags': ['django', 'python'],
|
||||
'url': 'https://www.djangoproject.com/'
|
||||
}
|
||||
self.assertEqual(serializer.data, expected)
|
||||
assert serializer.data == expected
|
||||
|
||||
def test_generic_fk(self):
|
||||
"""
|
||||
|
@ -105,4 +105,4 @@ class TestGenericRelations(TestCase):
|
|||
'tagged_item': 'Note: Remember the milk'
|
||||
}
|
||||
]
|
||||
self.assertEqual(serializer.data, expected)
|
||||
assert serializer.data == expected
|
||||
|
|
Loading…
Reference in New Issue
Block a user