Commit d2ae4152 by Asif Saifuddin Auvi

fix wrong assert

parent 63d8dc0b
......@@ -178,7 +178,7 @@ class SlugForeignKeyTests(TestCase):
data = {'id': 1, 'name': 'source-1', 'target': None}
instance = ForeignKeySource.objects.get(pk=1)
serializer = ForeignKeySourceSerializer(instance, data=data)
assert serializer.is_valid()
assert not serializer.is_valid()
assert serializer.errors == {'target': ['This field may not be null.']}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment