Skip to content

Commit

Permalink
backend: fix single pack transfer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simahawk committed May 29, 2020
1 parent bf39ec7 commit f0f53a8
Showing 1 changed file with 4 additions and 26 deletions.
30 changes: 4 additions & 26 deletions shopfloor/tests/test_single_pack_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,32 +69,10 @@ def _response_package_level_data(self, package_level):
return {
"id": package_level.id,
"name": package_level.package_id.name,
"location_src": {
"id": self.shelf1.id,
"name": self.shelf1.name,
"barcode": self.shelf1.barcode,
},
"location_dest": {
"id": self.shelf2.id,
"name": self.shelf2.name,
"barcode": self.shelf2.barcode,
},
"picking": {
"id": self.picking.id,
"name": self.picking.name,
"note": None,
"origin": None,
"partner": None,
"move_line_count": len(self.picking.move_line_ids),
"weight": 2.0,
},
"product": {
"id": self.product_a.id,
"name": self.product_a.name,
"default_code": self.product_a.default_code,
"barcode": self.product_a.barcode,
"display_name": self.product_a.display_name,
},
"location_src": self.data.location(self.shelf1),
"location_dest": self.data.location(self.shelf2),
"picking": self.data.picking(self.picking),
"product": self.data.product(self.product_a),
}

def test_start(self):
Expand Down

0 comments on commit f0f53a8

Please sign in to comment.