Skip to content

Commit 6cb049e

Browse files
committed
Fixing 2 tests that still where raising warnings
1 parent 398ecc9 commit 6cb049e

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

qiita_db/test/test_analysis.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ def test_retrieve_dropped_samples(self):
209209
'Description': 'Test Sample 1',
210210
'str_column': 'Value for sample 1',
211211
'latitude': 42.42,
212-
'longitude': 41.41},
212+
'longitude': 41.41,
213+
'taxon_id': 9606,
214+
'scientific_name': 'homo sapiens'},
213215
'SKD8.640184': {'physical_specimen_location': 'location1',
214216
'physical_specimen_remaining': True,
215217
'dna_extracted': True,
@@ -221,7 +223,9 @@ def test_retrieve_dropped_samples(self):
221223
'Description': 'Test Sample 2',
222224
'str_column': 'Value for sample 2',
223225
'latitude': 4.2,
224-
'longitude': 1.1},
226+
'longitude': 1.1,
227+
'taxon_id': 9606,
228+
'scientific_name': 'homo sapiens'},
225229
'SKB7.640196': {'physical_specimen_location': 'location1',
226230
'physical_specimen_remaining': True,
227231
'dna_extracted': True,
@@ -233,7 +237,9 @@ def test_retrieve_dropped_samples(self):
233237
'Description': 'Test Sample 3',
234238
'str_column': 'Value for sample 3',
235239
'latitude': 4.8,
236-
'longitude': 4.41},
240+
'longitude': 4.41,
241+
'taxon_id': 9606,
242+
'scientific_name': 'homo sapiens'},
237243
}
238244
metadata = pd.DataFrame.from_dict(metadata_dict, orient='index')
239245

qiita_db/test/test_commands.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -725,19 +725,19 @@ def test_update_preprocessed_data_from_cmd_ppd(self):
725725
"sample_name\trequired_sample_info_status\tcollection_timestamp\t"
726726
"sample_type\tphysical_specimen_remaining\tphysical_specimen_location\t"
727727
"dna_extracted\thost_subject_id\tTreatment\tDOB\tlatitude\tlongitude"
728-
"\tDescription\n"
728+
"\ttaxon_id\tscientific_name\tDescription\n"
729729
"PC.354\treceived\t2014-06-18 16:44\ttype_1\tTrue\tLocation_1\tTrue\t"
730730
"HS_ID_PC.354\tControl\t20061218\t1.88401499993\t56.0003871552\t"
731-
"Control_mouse_I.D._354\n"
731+
"9606\thomo sapiens\tControl_mouse_I.D._354\n"
732732
"PC.593\treceived\t2014-06-18 16:44\ttype_1\tTrue\tLocation_1\tTrue\t"
733733
"HS_ID_PC.593\tControl\t20071210\t35.4079458313\t83.2595338611\t"
734-
"Control_mouse_I.D._593\n"
734+
"9606\thomo sapiens\tControl_mouse_I.D._593\n"
735735
"PC.607\treceived\t2014-06-18 16:44\ttype_1\tTrue\tLocation_1\tTrue\t"
736736
"HS_ID_PC.607\tFast\t20071112\t18.3175615444\t91.3713989729\t"
737-
"Fasting_mouse_I.D._607\n"
737+
"9606\thomo sapiens\tFasting_mouse_I.D._607\n"
738738
"PC.636\treceived\t2014-06-18 16:44\ttype_1\tTrue\tLocation_1\tTrue\t"
739739
"HS_ID_PC.636\tFast\t20080116\t31.0856060708\t4.16781143893\t"
740-
"Fasting_mouse_I.D._636")
740+
"9606\thomo sapiens\tFasting_mouse_I.D._636")
741741

742742
PREP_TEMPLATE = (
743743
'sample_name\tbarcode\tcenter_name\tcenter_project_name\t'

0 commit comments

Comments
 (0)