-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'production' into issue-5138
- Loading branch information
Showing
63 changed files
with
2,231 additions
and
483 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
from specifyweb.businessrules.exceptions import BusinessRuleException | ||
from specifyweb.specify.models import CollectionObjectGroupType, Picklist, Picklistitem | ||
from specifyweb.specify.models import Collectionobjectgrouptype, Picklist, Picklistitem | ||
from specifyweb.specify.tests.test_api import DefaultsSetup | ||
from django.db import transaction | ||
|
||
# NOTE: Edit this test when a new COG type rule is decided upon. | ||
class COGTypeTest(DefaultsSetup): | ||
def test_cog_type_select_values(self): | ||
CollectionObjectGroupType.objects.create(name='microscope slide', type='Discrete', collection=self.collection) | ||
Collectionobjectgrouptype.objects.create(name='microscope slide', type='Discrete', collection=self.collection) | ||
|
||
with self.assertRaises(BusinessRuleException), transaction.atomic(): | ||
CollectionObjectGroupType.objects.create(name='whole rock', type='Burrito', collection=self.collection) | ||
Collectionobjectgrouptype.objects.create(name='whole rock', type='Burrito', collection=self.collection) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.