diff --git a/tests/data/parsers/picklist_table.csv b/tests/data/parsers/picklist_table.csv new file mode 100644 index 0000000..d401892 --- /dev/null +++ b/tests/data/parsers/picklist_table.csv @@ -0,0 +1,2 @@ +source_plate,source_well,volume,dest_plate,dest_well +source,A1,1,destination,B2 diff --git a/tests/test_picklist_parsers.py b/tests/test_picklist_parsers.py index 2afaae9..365e38f 100644 --- a/tests/test_picklist_parsers.py +++ b/tests/test_picklist_parsers.py @@ -1,10 +1,28 @@ -from plateo.parsers import (picklist_from_labcyte_echo_logfile, - picklist_from_tecan_evo_picklist_file) +import os + +from plateo.parsers import ( + picklist_from_labcyte_echo_logfile, + picklist_from_tecan_evo_picklist_file, + picklist_from_csv_file, +) + + +picklist_table_path = os.path.join("tests", "data", "parsers", "picklist_table.csv") + def test_picklist_from_labcyte_echo_logfile(): picklist_from_labcyte_echo_logfile pass + def test_picklist_from_tecan_evo_picklist_file(): picklist_from_tecan_evo_picklist_file pass + + +def test_picklist_from_csv_file(): + picklist = picklist_from_csv_file(picklist_table_path) + assert ( + picklist.to_plain_string() + == "Transfer 1.00E-06L from source A1 into destination B2" + )