def test_settings_required(self): with self.assertRaises(ImproperlyConfigured): client_connect()
def test_connect_access_token(self): with self.assertRaises(NoAuthorizationError): try: client_connect() except requests.exceptions.ConnectionError: self.skipTest("No Internet connection")
def get_client(): return client_connect()