-
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 pull request #5221 from specify/issue-5175
Respect naming convention for new geo tables
- Loading branch information
Showing
15 changed files
with
90 additions
and
90 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
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
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.