Skip to content

Commit 196f6a7

Browse files
committed
AMPLICON tests
1 parent ea89e72 commit 196f6a7

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

qiita_db/metadata_template/test/test_prep_template.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ def _common_creation_checks(self, pt, fp_count, name):
911911
self.assertEqual(pt.data_type(), self.data_type)
912912
self.assertEqual(pt.data_type(ret_id=True), self.data_type_id)
913913
self.assertEqual(pt.artifact, None)
914-
self.assertEqual(pt.investigation_type, 'Amplicon')
914+
self.assertEqual(pt.investigation_type, 'AMPLICON')
915915
self.assertEqual(pt.study_id, self.test_study.id)
916916
self.assertEqual(pt.status, "sandbox")
917917
exp_sample_ids = {'%s.SKB8.640193' % self.test_study.id,
@@ -1076,7 +1076,7 @@ def test_create_warning(self):
10761076
self.assertEqual(pt.data_type(), self.data_type)
10771077
self.assertEqual(pt.data_type(ret_id=True), self.data_type_id)
10781078
self.assertEqual(pt.artifact, None)
1079-
self.assertEqual(pt.investigation_type, 'Amplicon')
1079+
self.assertEqual(pt.investigation_type, 'AMPLICON')
10801080
self.assertEqual(pt.study_id, self.test_study.id)
10811081
self.assertEqual(pt.status, 'sandbox')
10821082
exp_sample_ids = {'%s.SKB8.640193' % self.test_study.id,
@@ -1247,7 +1247,7 @@ def test_investigation_type_setter(self):
12471247
"""Able to update the investigation type"""
12481248
pt = qdb.metadata_template.prep_template.PrepTemplate.create(
12491249
self.metadata, self.test_study, self.data_type_id)
1250-
self.assertEqual(pt.investigation_type, 'Amplicon')
1250+
self.assertEqual(pt.investigation_type, 'AMPLICON')
12511251
pt.investigation_type = "Other"
12521252
self.assertEqual(pt.investigation_type, 'Other')
12531253
with self.assertRaises(qdb.exceptions.QiitaDBColumnError):

qiita_db/test/test_ontology.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def testShortNameProperty(self):
3535
def testTerms(self):
3636
obs = self.ontology.terms
3737
self.assertEqual(
38-
obs, ['WGS', 'Metagenomics', 'Amplicon', 'RNA-Seq', 'Other'])
38+
obs, ['WGS', 'Metagenomics', 'AMPLICON', 'RNA-Seq', 'Other'])
3939

4040
def test_user_defined_terms(self):
4141
obs = self.ontology.user_defined_terms

qiita_pet/handlers/api_proxy/tests/test_prep_template.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class TestPrepAPIReadOnly(TestCase):
3838
def test_get_ENA_ontology(self):
3939
obs = _get_ENA_ontology()
4040
exp = {
41-
'ENA': ['Amplicon', 'Metagenomics', 'RNA-Seq', 'WGS', 'Other'],
41+
'ENA': ['AMPLICON', 'Metagenomics', 'RNA-Seq', 'WGS', 'Other'],
4242
'User': []}
4343
self.assertEqual(obs, exp)
4444

@@ -53,7 +53,7 @@ def test_new_prep_template_get_req(self):
5353
'Multiomic', 'Proteomic', 'Transcriptomics',
5454
'Viromics'],
5555
'ontology': {
56-
'ENA': ['Amplicon', 'Metagenomics', 'RNA-Seq', 'WGS', 'Other'],
56+
'ENA': ['AMPLICON', 'Metagenomics', 'RNA-Seq', 'WGS', 'Other'],
5757
'User': []}}
5858

5959
self.assertEqual(obs, exp)
@@ -73,7 +73,7 @@ def test_prep_template_ajax_get_req(self):
7373
'num_columns': 22,
7474
'investigation_type': 'Metagenomics',
7575
'ontology': {
76-
'ENA': ['Amplicon', 'Metagenomics', 'RNA-Seq', 'WGS',
76+
'ENA': ['AMPLICON', 'Metagenomics', 'RNA-Seq', 'WGS',
7777
'Other'],
7878
'User': []},
7979
'artifact_attached': True,

0 commit comments

Comments
 (0)