Skip to content

Commit c68c06f

Browse files
committed
Rename id -> sample_id
1 parent 68b417d commit c68c06f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/senaite/astm/instruments/horiba_pentra_xlr.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class OrderRecord(records.OrderRecord):
9494
# 45264012^02^08
9595
sample_id = ComponentField(
9696
Component.build(
97-
TextField(name="id"),
97+
TextField(name="sample_id"),
9898
TextField(name="rack"),
9999
TextField(name="position"),
100100
)

src/senaite/astm/tests/test_pentra_xlr.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def test_order_record(self):
109109
record = data["O"][0]
110110

111111
# test sample id
112-
self.assertEqual(record["sample_id"]["id"], "S1234")
112+
self.assertEqual(record["sample_id"]["sample_id"], "S1234")
113113
self.assertEqual(record["sample_id"]["rack"], "00")
114114
self.assertEqual(record["sample_id"]["position"], "00")
115115

0 commit comments

Comments
 (0)