@@ -50,18 +50,16 @@ def test_study_get_req(self):
50
50
obs = study_get_req (
1 ,
'[email protected] ' )
51
51
exp = {
52
52
'status' : 'success' ,
53
- 'message' : '' ,
54
53
'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 ,
62
59
'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' : (
65
63
'This is a preliminary study to examine the microbiota '
66
64
'associated with the Cannabis plant. Soils samples from '
67
65
'the bulk soil, soil associated with the roots, and the '
@@ -71,33 +69,25 @@ def test_study_get_req(self):
71
69
'from plants that had been harvested in the summer. '
72
70
'Future studies will attempt to analyze the soils and '
73
71
'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
-
83
- 'principal_investigator' : {'affiliation' : 'Wash U' ,
84
- 'name' : 'PIDude' ,
85
-
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
+
81
+ 'principal_investigator' : {
82
+ 'affiliation' : 'Wash U' , 'name' : 'PIDude' ,
83
+
84
+ 'study_alias' : 'Cannabis Soils' , 'study_id' : 1 ,
88
85
'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' : '' ,
101
91
'editable' : True }
102
92
self .assertEqual (obs , exp )
103
93
@@ -139,6 +129,8 @@ def test_study_get_req(self):
139
129
'study_description' : 'DESC' ,
140
130
'shared_with' : [],
141
131
'lab_person' : None ,
132
+ 'study_alias' : "FCM" ,
133
+ 'owner' : 'Dude' ,
142
134
'principal_investigator' : {'affiliation' : 'Wash U' ,
143
135
'name' : 'PIDude' ,
144
136
0 commit comments