@@ -45,13 +45,12 @@ class AllSampleFixtureResponse:
45
45
observation_unit_response : AllObservationUnitFixtureResponse
46
46
47
47
48
- PO_0025094 = Vocabulary (title = "PO:0025094" , accession_number = "PO:0025094" )
49
- BBCH_17 = Vocabulary (title = "BBCH-17" , accession_number = "BBCH-17" )
50
48
PO_0007010 = Vocabulary (title = "PO_0007010" , accession_number = "PO_0007010" )
51
- PO_0000003 = Vocabulary (title = "PO:0000003 " , accession_number = "PO:0000003 " )
49
+ PO_0025094 = Vocabulary (title = "PO:0025094 " , accession_number = "PO:0025094 " )
52
50
PO_0025161 = Vocabulary (title = "PO:0025161" , accession_number = "PO:0025161" )
53
51
PO_0006001 = Vocabulary (title = "PO_0006001" , accession_number = "PO_0006001" )
54
52
53
+
55
54
LEAFDISC_061439 = Sample (
56
55
title = "leafdisc_061439" ,
57
56
description = "Leaves collected at harvest stage (Barley developmental stage 11)" ,
@@ -89,7 +88,6 @@ async def get_sample_fixture(
89
88
** data .to_dict (),
90
89
)
91
90
if id is None :
92
- send_data .updated_at = None
93
91
response = await post_fixture (PATH , send_data , test_client )
94
92
else :
95
93
response = await put_fixture (PATH , send_data , test_client , id )
@@ -162,6 +160,6 @@ async def setup_sample(
162
160
anatomical_entity_response = setup_anatomical_entity ,
163
161
observation_unit_response = setup_observation_units ,
164
162
)
165
- await delete_fixture (PATH , cea_be .sample_response , test_client )
166
- await delete_fixture (PATH , leafdisc_061439 .sample_response , test_client )
167
- await delete_fixture (PATH , leafdisc_061440 .sample_response , test_client )
163
+ await delete_fixture (PATH , cea_be .sample_response . json ()[ "id" ] , test_client )
164
+ await delete_fixture (PATH , leafdisc_061439 .sample_response . json ()[ "id" ] , test_client )
165
+ await delete_fixture (PATH , leafdisc_061440 .sample_response . json ()[ "id" ] , test_client )
0 commit comments