Exemplo n.º 1
0
    def setUp(self):
        self.test_client = app.test_client()

        self.order = {
            "destination": "europ",
            "email": "*****@*****.**",
            "item_origin": "nsambya",
            "item_to_be_shipped": "muucdhx",
            "name_of_reciever": "Dorah",
            "order_id": 1,
            "status": "pending",
            "user_id": 1,
            "weight": 1
        }
        parcel = {
            "destination": "europ",
            "email": "*****@*****.**",
            "item_origin": "nsambya",
            "item_to_be_shipped": "muucdhx",
            "name_of_reciever": "Dorah",
            "order_id": 1,
            "status": "pending",
            "user_id": 1,
            "weight": 1
        }
Exemplo n.º 2
0
 def setUp(self):
     """Initialises app and sets its variables"""
     app.testing = True
     self.tester = app.test_client()
     self.order = {
         'user_id': 'deb',
         'email': '*****@*****.**',
         'status': 'pending'
     }
Exemplo n.º 3
0
 def setUp(self):
     self.tester = app.test_client(self)
Exemplo n.º 4
0
def client(request):
    test_client = app.test_client()

    return test_client
Exemplo n.º 5
0
 def setUp(self):
     self.app = app.test_client()