예제 #1
0
 def setUp(self):
     super().setUp()
     account_type_populator()
     account_populator()
     self.data = {
         "name": "Acc",
         "acc_type": AccTypeEnum.LEAF.value,
         "parent": get_root_acc().pk
     }
예제 #2
0
    def setUp(self):
        super().setUp()
        account_type_populator()
        account_populator()
        currency_populator()

        # Sets up a request session with authorization header
        self.requests = _TestRequests(
            self.live_server_url,
            {'Authorization': f"Token {settings.ADMIN_TOKEN}"})
예제 #3
0
 def populate_accounts(self):
     """ Populates db with Accounts """
     account_type_populator()
     account_populator()
예제 #4
0
 def setUp(self):
     super().setUp()
     account_type_populator()
     account_populator()
예제 #5
0
 def setUp(self):
     super().setUp()
     account_type_populator()
     account_populator()
     self.acc = AccountTestFactory()
     self.data = {}
예제 #6
0
 def populate_accounts(self):
     account_type_populator()
     account_populator()