From c5590fd8f56d0e92cbd56fc73373ab5f88918efe Mon Sep 17 00:00:00 2001 From: visi Date: Tue, 21 Jan 2025 10:07:10 -0500 Subject: [PATCH] wip --- synapse/models/transport.py | 1 + synapse/tests/test_model_transport.py | 1 + 2 files changed, 2 insertions(+) diff --git a/synapse/models/transport.py b/synapse/models/transport.py index 2759cc64f3..81370fbfdb 100644 --- a/synapse/models/transport.py +++ b/synapse/models/transport.py @@ -516,6 +516,7 @@ def getModelDefs(self): 'doc': 'The ID assigned to the train.'}), )), + ('transport:rail:car:type:taxonomy', {}, ()), ('transport:rail:car', {}, ( ('type', ('transport:rail:car:type:taxonomy', {}), { 'doc': 'The type of rail car.'}), diff --git a/synapse/tests/test_model_transport.py b/synapse/tests/test_model_transport.py index ad443e3be0..30c0f8b47f 100644 --- a/synapse/tests/test_model_transport.py +++ b/synapse/tests/test_model_transport.py @@ -304,6 +304,7 @@ async def test_model_transport_rail(self): self.eq(2, nodes[0].get('max:occupants')) self.eq('1000000', nodes[0].get('max:cargo:mass')) self.eq(1000000, nodes[0].get('max:cargo:volume')) + self.len(1, await core.nodes('transport:rail:car -> transport:rail:car:type:taxonomy')) self.nn(nodes[0].get('owner'))