def setUp(self): Test.setUp(self) self.admin_permission = Permission( permission_name="Admin", description="Gives acces to all aspects of the system" ) self.admin_permission.add()
def setUp(self): Test.setUp(self) self.post = Post( title="Title", description="Description" ) self.post.add()
def setUp(self): Test.setUp(self) self.warehouse = Warehouse(name="Test Warehouse") self.warehouse.add() self.product = Product(warehouse_id=self.warehouse.id, code="Test Code", description="Optional description", price=10) self.product.add()
def setUp(self): Test.setUp(self) self.expense_type = ExpenseType( name="Test Type" ) self.expense_type.add() self.expense = Expense( concept="Test Expense", type_id=self.expense_type.id ) self.expense.add()
def setUp(self): Test.setUp(self) self.customer = Customer(customer_name="Test Name", address="Test Address", rfc="Test RFC") self.customer.add() self.product_1 = Product(warehouse_id=1, code="Code 1", price=10) self.product_1.add() self.product_2 = Product(warehouse_id=1, code="Code 2", price=10) self.product_2.add() self.receipt = Receipt(customer_id=self.customer.id) self.receipt.add()
def setUp(self): Test.setUp(self) self.user = User( username="******", password="******" ) self.user.add() self.order = Order( user_id=self.user.id, title="Test Title", description="Test Description", due_date=date.today() ) self.order.add()
def setUp(self): Test.setUp(self) self.product = Product( warehouse_id=1, code="Test Code", description="Optional description", price=10 ) self.product.add() self.finished_product = FinishedProduct( product_id=self.product.id, quantity=1, unit="pz" ) self.finished_product.add()
def setUp(self): Test.setUp(self) self.customer = Customer(customer_name="Test Name", address="Test Address", rfc="Test RFC") self.customer.add()
def setUp(self): Test.setUp(self) self.user = User(username="******", password="******") self.user.add()
def setUp(self): Test.setUp(self) self.user = User(username="******", password="******") self.user.add() self.view = View(view_name="Test View") self.view.add()
def setUp(self): Test.setUp(self) self.view = View(view_name="Test View") self.view.add()
def setUp(self): Test.setUp(self) self.warehouse = Warehouse(name="Test Warehouse") self.warehouse.add()
def setUp(self): Test.setUp(self)