Skip to content

Commit

Permalink
AMPLICON tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antgonza committed Dec 10, 2024
1 parent ea89e72 commit 196f6a7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions qiita_db/metadata_template/test/test_prep_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ def _common_creation_checks(self, pt, fp_count, name):
self.assertEqual(pt.data_type(), self.data_type)
self.assertEqual(pt.data_type(ret_id=True), self.data_type_id)
self.assertEqual(pt.artifact, None)
self.assertEqual(pt.investigation_type, 'Amplicon')
self.assertEqual(pt.investigation_type, 'AMPLICON')
self.assertEqual(pt.study_id, self.test_study.id)
self.assertEqual(pt.status, "sandbox")
exp_sample_ids = {'%s.SKB8.640193' % self.test_study.id,
Expand Down Expand Up @@ -1076,7 +1076,7 @@ def test_create_warning(self):
self.assertEqual(pt.data_type(), self.data_type)
self.assertEqual(pt.data_type(ret_id=True), self.data_type_id)
self.assertEqual(pt.artifact, None)
self.assertEqual(pt.investigation_type, 'Amplicon')
self.assertEqual(pt.investigation_type, 'AMPLICON')
self.assertEqual(pt.study_id, self.test_study.id)
self.assertEqual(pt.status, 'sandbox')
exp_sample_ids = {'%s.SKB8.640193' % self.test_study.id,
Expand Down Expand Up @@ -1247,7 +1247,7 @@ def test_investigation_type_setter(self):
"""Able to update the investigation type"""
pt = qdb.metadata_template.prep_template.PrepTemplate.create(
self.metadata, self.test_study, self.data_type_id)
self.assertEqual(pt.investigation_type, 'Amplicon')
self.assertEqual(pt.investigation_type, 'AMPLICON')
pt.investigation_type = "Other"
self.assertEqual(pt.investigation_type, 'Other')
with self.assertRaises(qdb.exceptions.QiitaDBColumnError):
Expand Down
2 changes: 1 addition & 1 deletion qiita_db/test/test_ontology.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def testShortNameProperty(self):
def testTerms(self):
obs = self.ontology.terms
self.assertEqual(
obs, ['WGS', 'Metagenomics', 'Amplicon', 'RNA-Seq', 'Other'])
obs, ['WGS', 'Metagenomics', 'AMPLICON', 'RNA-Seq', 'Other'])

def test_user_defined_terms(self):
obs = self.ontology.user_defined_terms
Expand Down
6 changes: 3 additions & 3 deletions qiita_pet/handlers/api_proxy/tests/test_prep_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class TestPrepAPIReadOnly(TestCase):
def test_get_ENA_ontology(self):
obs = _get_ENA_ontology()
exp = {
'ENA': ['Amplicon', 'Metagenomics', 'RNA-Seq', 'WGS', 'Other'],
'ENA': ['AMPLICON', 'Metagenomics', 'RNA-Seq', 'WGS', 'Other'],
'User': []}
self.assertEqual(obs, exp)

Expand All @@ -53,7 +53,7 @@ def test_new_prep_template_get_req(self):
'Multiomic', 'Proteomic', 'Transcriptomics',
'Viromics'],
'ontology': {
'ENA': ['Amplicon', 'Metagenomics', 'RNA-Seq', 'WGS', 'Other'],
'ENA': ['AMPLICON', 'Metagenomics', 'RNA-Seq', 'WGS', 'Other'],
'User': []}}

self.assertEqual(obs, exp)
Expand All @@ -73,7 +73,7 @@ def test_prep_template_ajax_get_req(self):
'num_columns': 22,
'investigation_type': 'Metagenomics',
'ontology': {
'ENA': ['Amplicon', 'Metagenomics', 'RNA-Seq', 'WGS',
'ENA': ['AMPLICON', 'Metagenomics', 'RNA-Seq', 'WGS',
'Other'],
'User': []},
'artifact_attached': True,
Expand Down

0 comments on commit 196f6a7

Please sign in to comment.