Skip to content

Commit 51ff4f9

Browse files
committed
fixing error
1 parent e5ff2c8 commit 51ff4f9

File tree

1 file changed

+28
-36
lines changed

1 file changed

+28
-36
lines changed

qiita_pet/handlers/api_proxy/tests/test_studies.py

Lines changed: 28 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,16 @@ def test_study_get_req(self):
5050
obs = study_get_req(1, '[email protected]')
5151
exp = {
5252
'status': 'success',
53-
'message': '',
5453
'study_info': {
55-
'mixs_compliant': True,
56-
'metadata_complete': True,
57-
'reprocess': False,
58-
'emp_person_id': 2,
59-
'number_samples_promised': 27,
60-
'funding': None,
61-
'vamps_id': None,
54+
'mixs_compliant': True, 'metadata_complete': True,
55+
'reprocess': False, 'owner': '[email protected]',
56+
'emp_person_id': 2, 'number_samples_promised': 27,
57+
'funding': None, 'show_biom_download_button': True,
58+
'publication_pid': ['123456', '7891011'], 'vamps_id': None,
6259
'first_contact': datetime(2014, 5, 19, 16, 10),
63-
'timeseries_type_id': 1,
64-
'study_abstract':
60+
'ebi_submission_status': 'submitted',
61+
'show_raw_download_button': True, 'timeseries_type_id': 1,
62+
'study_abstract': (
6563
'This is a preliminary study to examine the microbiota '
6664
'associated with the Cannabis plant. Soils samples from '
6765
'the bulk soil, soil associated with the roots, and the '
@@ -71,33 +69,25 @@ def test_study_get_req(self):
7169
'from plants that had been harvested in the summer. '
7270
'Future studies will attempt to analyze the soils and '
7371
'rhizospheres from the same location at different time '
74-
'points in the plant lifecycle.',
75-
'status': 'private',
76-
'spatial_series': False,
77-
'study_description': 'Analysis of the Cannabis Plant '
78-
'Microbiome',
79-
'shared_with': ['[email protected]'],
80-
'lab_person': {'affiliation': 'knight lab',
81-
'name': 'LabDude',
82-
'email': '[email protected]'},
83-
'principal_investigator': {'affiliation': 'Wash U',
84-
'name': 'PIDude',
85-
'email': '[email protected]'},
86-
'study_alias': 'Cannabis Soils',
87-
'study_id': 1,
72+
'points in the plant lifecycle.'),
73+
'status': 'private', 'spatial_series': False,
74+
'study_description': (
75+
'Analysis of the Cannabis Plant Microbiome'),
76+
'shared_with': ['[email protected]'], 'publication_doi': [
77+
'10.100/123456', '10.100/7891011'],
78+
'has_access_to_raw_data': True, 'lab_person': {
79+
'affiliation': 'knight lab', 'name': 'LabDude',
80+
'email': '[email protected]'},
81+
'principal_investigator': {
82+
'affiliation': 'Wash U', 'name': 'PIDude',
83+
'email': '[email protected]'},
84+
'study_alias': 'Cannabis Soils', 'study_id': 1,
8885
'most_recent_contact': datetime(2014, 5, 19, 16, 11),
89-
'publication_doi': ['10.100/123456', '10.100/7891011'],
90-
'publication_pid': ['123456', '7891011'],
91-
'num_samples': 27,
92-
'study_title': 'Identification of the Microbiomes for '
93-
'Cannabis Soils',
94-
'number_samples_collected': 27,
95-
'owner': 'Dude',
96-
'ebi_submission_status': 'submitted',
97-
'has_access_to_raw_data': True,
98-
'show_biom_download_button': True,
99-
'show_raw_download_button': True,
100-
'ebi_study_accession': 'EBI123456-BB'},
86+
'ebi_study_accession': 'EBI123456-BB', 'num_samples': 27,
87+
'study_title': (
88+
'Identification of the Microbiomes for Cannabis Soils'),
89+
'number_samples_collected': 27},
90+
'message': '',
10191
'editable': True}
10292
self.assertEqual(obs, exp)
10393

@@ -139,6 +129,8 @@ def test_study_get_req(self):
139129
'study_description': 'DESC',
140130
'shared_with': [],
141131
'lab_person': None,
132+
'study_alias': "FCM",
133+
'owner': 'Dude',
142134
'principal_investigator': {'affiliation': 'Wash U',
143135
'name': 'PIDude',
144136
'email': '[email protected]'},

0 commit comments

Comments
 (0)