Skip to content

Commit

Permalink
Test picklist table parser
Browse files Browse the repository at this point in the history
  • Loading branch information
veghp committed Sep 30, 2024
1 parent 8e338c6 commit fdccf8e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/data/parsers/picklist_table.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
source_plate,source_well,volume,dest_plate,dest_well
source,A1,1,destination,B2
22 changes: 20 additions & 2 deletions tests/test_picklist_parsers.py
Original file line number Diff line number Diff line change
@@ -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"
)

0 comments on commit fdccf8e

Please sign in to comment.