Skip to content

Commit e5ae3e4

Browse files
committed
Removing warnings from tests:
1 parent c30dd8c commit e5ae3e4

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

qiita_db/test/test_analysis.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ def test_retrieve_dropped_samples(self):
182182
"lab_person_id": StudyPerson(1)
183183
}
184184
metadata_dict = {
185-
'SKB8.640193': {'physical_location': 'location1',
186-
'has_physical_specimen': True,
187-
'has_extracted_data': True,
185+
'SKB8.640193': {'physical_specimen_location': 'location1',
186+
'physical_specimen_remaining': True,
187+
'dna_extracted': True,
188188
'sample_type': 'type1',
189189
'required_sample_info_status': 'received',
190190
'collection_timestamp':
@@ -194,9 +194,9 @@ def test_retrieve_dropped_samples(self):
194194
'str_column': 'Value for sample 1',
195195
'latitude': 42.42,
196196
'longitude': 41.41},
197-
'SKD8.640184': {'physical_location': 'location1',
198-
'has_physical_specimen': True,
199-
'has_extracted_data': True,
197+
'SKD8.640184': {'physical_specimen_location': 'location1',
198+
'physical_specimen_remaining': True,
199+
'dna_extracted': True,
200200
'sample_type': 'type1',
201201
'required_sample_info_status': 'received',
202202
'collection_timestamp':
@@ -206,9 +206,9 @@ def test_retrieve_dropped_samples(self):
206206
'str_column': 'Value for sample 2',
207207
'latitude': 4.2,
208208
'longitude': 1.1},
209-
'SKB7.640196': {'physical_location': 'location1',
210-
'has_physical_specimen': True,
211-
'has_extracted_data': True,
209+
'SKB7.640196': {'physical_specimen_location': 'location1',
210+
'physical_specimen_remaining': True,
211+
'dna_extracted': True,
212212
'sample_type': 'type1',
213213
'required_sample_info_status': 'received',
214214
'collection_timestamp':

qiita_db/test/test_commands.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -723,8 +723,9 @@ def test_update_preprocessed_data_from_cmd_ppd(self):
723723

724724
SAMPLE_TEMPLATE = (
725725
"sample_name\trequired_sample_info_status\tcollection_timestamp\t"
726-
"sample_type\thas_physical_specimen\tphysical_location\thas_extracted_data"
727-
"\thost_subject_id\tTreatment\tDOB\tlatitude\tlongitude\tDescription\n"
726+
"sample_type\tphysical_specimen_remaining\tphysical_specimen_location\t"
727+
"dna_extracted\thost_subject_id\tTreatment\tDOB\tlatitude\tlongitude"
728+
"\tDescription\n"
728729
"PC.354\treceived\t2014-06-18 16:44\ttype_1\tTrue\tLocation_1\tTrue\t"
729730
"HS_ID_PC.354\tControl\t20061218\t1.88401499993\t56.0003871552\t"
730731
"Control_mouse_I.D._354\n"
@@ -739,8 +740,8 @@ def test_update_preprocessed_data_from_cmd_ppd(self):
739740
"Fasting_mouse_I.D._636")
740741

741742
PREP_TEMPLATE = (
742-
'sample_name\tbarcodesequence\tcenter_name\tcenter_project_name\t'
743-
'description\tebi_submission_accession\temp_status\tlinkerprimersequence\t'
743+
'sample_name\tbarcode\tcenter_name\tcenter_project_name\t'
744+
'description\tebi_submission_accession\temp_status\tprimer\t'
744745
'run_prefix\tstr_column\tplatform\tlibrary_construction_protocol\t'
745746
'experiment_design_description\n'
746747
'SKB7.640196\tCCTCTGAGAGCT\tANL\tTest Project\tskb7\tNone\tEMP\t'

0 commit comments

Comments
 (0)