Skip to content

Commit ad1f329

Browse files
author
Mark Unsworth
committed
removed test for unique index as it's not possible to insert two docs with the same key now that writes are safe
1 parent 3513aac commit ad1f329

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

tests/mongodb/tests.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,6 @@ def test_setup(flags, **method_kwargs):
267267
update={'multi': True},
268268
remove={'fsync': True})
269269

270-
def test_unique(self):
271-
with self.custom_database_wrapper({'OPTIONS': {}}):
272-
Post.objects.create(title='a', content='x')
273-
Post.objects.create(title='a', content='y')
274-
self.assertEqual(Post.objects.count(), 1)
275-
self.assertEqual(Post.objects.get().content, 'x')
276270

277271
def test_unique_safe(self):
278272
Post.objects.create(title='a')

0 commit comments

Comments
 (0)