Skip to content

Commit

Permalink
TestDuplicationReopen: do not run dedupe during setUp
Browse files Browse the repository at this point in the history
  • Loading branch information
kiblik committed Jun 17, 2024
1 parent 46f567f commit 87add2f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions unittests/test_utils_deduplication_reopen.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ def setUp(self):
self.finding_a.false_p = True
self.finding_a.active = False
self.finding_a.duplicate_finding = None
self.finding_a.save()
self.finding_a.save(dedupe_option=False)
self.finding_b = Finding.objects.get(id=3)
self.finding_b.pk = None
self.finding_a.active = True
self.finding_b.duplicate = False
self.finding_b.duplicate_finding = None
self.finding_b.save()
self.finding_b.save(dedupe_option=False)

self.finding_c = Finding.objects.get(id=4)
self.finding_c.duplicate = False
Expand All @@ -37,13 +37,13 @@ def setUp(self):
self.finding_c.duplicate_finding = None
self.finding_c.pk = None
logger.debug('creating finding_c')
self.finding_c.save()
self.finding_c.save(dedupe_option=False)
self.finding_d = Finding.objects.get(id=5)
self.finding_d.duplicate = False
self.finding_d.duplicate_finding = None
self.finding_d.pk = None
logger.debug('creating finding_d')
self.finding_d.save()
self.finding_d.save(dedupe_option=False)

def tearDown(self):
if self.finding_a.id:
Expand Down

0 comments on commit 87add2f

Please sign in to comment.