Skip to content

Commit 795e9eb

Browse files
committed
Ensure tests do not use Category with pk 9
1 parent 672dfbc commit 795e9eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tigacrafting/tests/tests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2110,6 +2110,10 @@ def test_status_should_be_conflict(self, identification_task, taxon_root, num_is
21102110
categories = []
21112111
for i in range(settings.MAX_N_OF_EXPERTS_ASSIGNED_PER_REPORT):
21122112
category = Categories.objects.create(name='specie {}'.format(i))
2113+
# NOTE: pk=9 is reserved for Not sure.
2114+
if category.pk == 9:
2115+
category.pk = 10
2116+
category.save()
21132117
categories.append(category)
21142118
_ = genus.add_child(
21152119
name=category.name,

0 commit comments

Comments
 (0)