Example #1
0
 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()
Example #2
0
 def setUp(self):
     Test.setUp(self)
     self.post = Post(
         title="Title",
         description="Description"
     )
     self.post.add()
Example #3
0
 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()
Example #4
0
 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()
Example #5
0
 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()
Example #6
0
 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()
Example #7
0
 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()
Example #8
0
 def setUp(self):
     Test.setUp(self)
     self.customer = Customer(customer_name="Test Name",
                              address="Test Address",
                              rfc="Test RFC")
     self.customer.add()
Example #9
0
 def setUp(self):
     Test.setUp(self)
     self.user = User(username="******", password="******")
     self.user.add()
Example #10
0
 def setUp(self):
     Test.setUp(self)
     self.user = User(username="******", password="******")
     self.user.add()
     self.view = View(view_name="Test View")
     self.view.add()
Example #11
0
 def setUp(self):
     Test.setUp(self)
     self.view = View(view_name="Test View")
     self.view.add()
Example #12
0
 def setUp(self):
     Test.setUp(self)
     self.warehouse = Warehouse(name="Test Warehouse")
     self.warehouse.add()
Example #13
0
 def setUp(self):
     Test.setUp(self)