def test_pools_to_status(rml_order): # GIVEN a rml order with three samples in one pool # WHEN parsing for status data = StatusHandler.pools_to_status(rml_order) # THEN it should pick out the general information assert data['customer'] == 'cust001' assert data['order'] == 'ctDNA sequencing - order 9' # ... and information about the pool(s) assert len(data['pools']) == 1 assert data['pools'][0]['name'] == '1' assert data['pools'][0]['application'] == 'RMLS05R150'
def test_pools_to_status(rml_order_to_submit): # GIVEN a rml order with three samples in one pool # WHEN parsing for status data = StatusHandler.pools_to_status(rml_order_to_submit) # THEN it should pick out the general information assert data["customer"] == "cust001" assert data["order"] == "ctDNA sequencing - order 9" # ... and information about the pool(s) assert len(data["pools"]) == 1 assert data["pools"][0]["name"] == "pool-1" assert data["pools"][0]["application"] == "RMLS05R150" assert data["pools"][0]["data_analysis"] == "fastq" assert data["pools"][0]["capture_kit"] == "Agilent Sureselect CRE"
def rml_status_data(rml_order_to_submit): """Parse rml order example.""" data = StatusHandler.pools_to_status(rml_order_to_submit) return data