Esempio n. 1
0
    def testLost(self):
        material = self.create_production_material()
        material.needed = 10
        material.allocated = 5
        material.order.start_production()
        editor = ProductionMaterialLostEditor(self.store, material)

        lost = material.lost

        editor.quantity.update(3)

        self.click(editor.main_dialog.ok_button)

        self.assertEquals(material.lost, lost + 3)
Esempio n. 2
0
 def testShow(self):
     material = self.create_production_material()
     editor = ProductionMaterialLostEditor(self.store, material)
     editor.identifier.set_label("12345")
     self.check_editor(editor, 'editor-productionmateriallosteditor-show')