async def setUp(self): await super(TasksEndpointTest, self).setUp() self.user = UserDB() self.user.current_account = AccountDB(**ACCOUNT_DEV_DICT) self.auth_header = { "Authorization": f"Token {USER_WITH_MULTIPLE_ACCOUNTS_AUTH_KEY}" }
async def setUp(self): await super(DispatchResponse404Test, self).setUp() self.user = UserDB( tx_email="*****@*****.**", tx_name="John Doe", tx_authkey="69ed620926be4067a36402c3f7e9ddf0", ) self.account_dev = AccountDB(id=4, name="Dev Team", namespace="dev", owner="company") self.user.accounts = [self.account_dev]
async def setUp(self): await super(RoutesTest, self).setUp() self.user = UserDB() self.account_dev = AccountDB( id=ACCOUNT_DEV_ID, name=ACCOUNT_DEV_NAME, namespace=ACCOUNT_DEV_NAMESPACE, owner=ACCOUNT_DEV_OWNER, ) self.user.accounts = [self.account_dev] self.proxy_mock_patcher = patch.object(hollowman.routes, "raw_proxy") self.proxy_mock = self.proxy_mock_patcher.start() self.proxy_mock.return_value = Response(status=200)
async def setUp(self): await super(RequestHandlersTests, self).setUp() self.request_apps = [ (MarathonApp(id="/xablau"), MarathonApp(id="/xena")), (MarathonApp(id="/foo"), MarathonApp(id="/bar")), ] self.user = UserDB( tx_email="*****@*****.**", tx_name="John Doe", tx_authkey="69ed620926be4067a36402c3f7e9ddf0", ) self.account_dev = AccountDB(id=4, name="Dev Team", namespace="dev", owner="company") self.user.accounts = [self.account_dev]
async def setUp(self): await super(HollowmanAppTest, self).setUp() fixture = get_fixture("single_full_app.json") self.user = UserDB( tx_email="*****@*****.**", tx_name="John Doe", tx_authkey="69ed620926be4067a36402c3f7e9ddf0", ) self.account_dev = AccountDB( id=4, name="Dev Team", namespace="dev", owner="company" ) responses.add( method="GET", url=conf.MARATHON_ADDRESSES[0] + "/v2/apps", body=json.dumps({"apps": [fixture]}), status=200, headers={"Content-Encoding": "chunked"}, ) responses.start()