Merge branch 'testing' into feature/#130-code-for-device
This commit is contained in:
commit
e6f098abc8
|
@ -116,13 +116,13 @@ class Dummy:
|
||||||
user1.post({'type': model.t, 'devices': [pc]}, res=m.Action)
|
user1.post({'type': model.t, 'devices': [pc]}, res=m.Action)
|
||||||
|
|
||||||
# Perform a Sell to several devices
|
# Perform a Sell to several devices
|
||||||
user1.post(
|
# user1.post(
|
||||||
{
|
# {
|
||||||
'type': m.Sell.t,
|
# 'type': m.Sell.t,
|
||||||
'to': user1.user['individuals'][0]['id'],
|
# 'to': user1.user['individuals'][0]['id'],
|
||||||
'devices': list(itertools.islice(pcs, len(pcs) // 2))
|
# 'devices': list(itertools.islice(pcs, len(pcs) // 2))
|
||||||
},
|
# },
|
||||||
res=m.Action)
|
# res=m.Action)
|
||||||
|
|
||||||
lot_user, _ = user1.post({'name': 'LoteStephan'}, res=Lot)
|
lot_user, _ = user1.post({'name': 'LoteStephan'}, res=Lot)
|
||||||
|
|
||||||
|
@ -172,13 +172,13 @@ class Dummy:
|
||||||
res=m.Action)
|
res=m.Action)
|
||||||
|
|
||||||
# todo test reserve
|
# todo test reserve
|
||||||
user1.post( # Sell device
|
# user1.post( # Sell device
|
||||||
{
|
# {
|
||||||
'type': m.Sell.t,
|
# 'type': m.Sell.t,
|
||||||
'to': user1.user['individuals'][0]['id'],
|
# 'to': user1.user['individuals'][0]['id'],
|
||||||
'devices': [sample_pc]
|
# 'devices': [sample_pc]
|
||||||
},
|
# },
|
||||||
res=m.Action)
|
# res=m.Action)
|
||||||
# todo Receive
|
# todo Receive
|
||||||
|
|
||||||
user1.get(res=Device, item=sample_pc_devicehub_id) # Test
|
user1.get(res=Device, item=sample_pc_devicehub_id) # Test
|
||||||
|
|
Reference in New Issue