fixed test of devices

This commit is contained in:
Cayo Puigdefabregas 2020-10-16 16:42:43 +02:00
parent 3988079b01
commit 0c5897a06c
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ def test_device_model():
# Removing a component from pc doesn't delete the component
pc.components.remove(net)
db.session.commit()
pc = d.Device.query.first() # this is the same as querying for d.Desktop directly
pc = d.Device.query.filter_by(id=pc.id).first() # this is the same as querying for d.Desktop directly
assert pc.components == {graphic}
network_adapter = d.NetworkAdapter.query.one()
assert network_adapter not in pc.components