Skip to content

Commit e0b2698

Browse files
committed
Fixing sample template tests
1 parent 52505bc commit e0b2698

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

qiita_db/metadata_template/test/test_sample_template.py

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -802,23 +802,20 @@ def test_add_common_creation_steps_to_queue(self):
802802

803803
sql_insert_required = (
804804
'INSERT INTO qiita.required_sample_info '
805-
'(study_id, sample_id, physical_location, has_physical_specimen, '
806-
'has_extracted_data, sample_type, required_sample_info_status_id, '
807-
'collection_timestamp, host_subject_id, description, latitude, '
808-
'longitude) '
805+
'(study_id, sample_id, collection_timestamp, description, '
806+
'has_extracted_data, has_physical_specimen, host_subject_id, '
807+
'latitude, longitude, physical_location, '
808+
'required_sample_info_status_id, sample_type) '
809809
'VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)')
810810
sql_insert_required_params_1 = (
811-
2, '2.Sample1', 'location1', True, True, 'type1', 1,
812-
datetime(2014, 5, 29, 12, 24, 51), 'NotIdentified',
813-
'Test Sample 1', 42.42, 41.41)
811+
2, '2.Sample1', datetime(2014, 5, 29, 12, 24, 51), 'Test Sample 1',
812+
True, True, 'NotIdentified', 42.42, 41.41, 'location1', 1, 'type1')
814813
sql_insert_required_params_2 = (
815-
2, '2.Sample2', 'location1', True, True, 'type1', 1,
816-
datetime(2014, 5, 29, 12, 24, 51), 'NotIdentified',
817-
'Test Sample 2', 4.2, 1.1)
814+
2, '2.Sample2', datetime(2014, 5, 29, 12, 24, 51), 'Test Sample 2',
815+
True, True, 'NotIdentified', 4.2, 1.1, 'location1', 1, 'type1')
818816
sql_insert_required_params_3 = (
819-
2, '2.Sample3', 'location1', True, True, 'type1', 1,
820-
datetime(2014, 5, 29, 12, 24, 51), 'NotIdentified',
821-
'Test Sample 3', 4.8, 4.41)
817+
2, '2.Sample3', datetime(2014, 5, 29, 12, 24, 51), 'Test Sample 3',
818+
True, True, 'NotIdentified', 4.8, 4.41, 'location1', 1, 'type1')
822819

823820
sql_insert_sample_cols = (
824821
'INSERT INTO qiita.study_sample_columns '

0 commit comments

Comments
 (0)