Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
invisig0th committed Jan 21, 2025
1 parent 5e5ca1f commit c5590fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions synapse/models/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.'}),
Expand Down
1 change: 1 addition & 0 deletions synapse/tests/test_model_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))

Expand Down

0 comments on commit c5590fd

Please sign in to comment.