def setUp(self): app.config['TESTING'] = True self.app = app.test_client() key = ''.join(choice(letters + digits) for _ in range(12)) secret = ''.join(choice(letters + digits) for _ in range(16)) self.token = OAuthToken(key, secret)
def setUp(self): app.config['DROPBOX_CACHE_STORAGE'] = 'self' app.config['TESTING'] = True self.app = app.test_client() key = ''.join(choice(letters + digits) for _ in range(12)) secret = ''.join(choice(letters + digits) for _ in range(16)) self.token = OAuthToken(key, secret)
def setUp(self): app.config["TESTING"] = True self.app = app.test_client()
def client(): with app.test_client() as client: with app.app_context(): yield client