def test_configuration(self): Configuration.configure(account_id='test_account', secret_key='test_key', timeout=1000, max_attempts=2) configuration = Configuration.instantiate() self.assertEqual(configuration.account_id, 'test_account') self.assertEqual(configuration.secret_key, 'test_key') self.assertEqual(configuration.timeout, 1000) self.assertEqual(configuration.max_attempts, 2)
def setUp(self): Configuration.configure( account_id="test_account_id", secret_key="test_secret_key", timeout=1, ) Configuration.agent_framework = Version( "Yandex.Money.Framework", "0.0.1" ) Configuration.agent_cms = Version("Yandex.Money.Cms", "0.0.2") Configuration.agent_module = Version("Yandex.Money.Module", "0.0.3") self.client = ApiClient() self.client.endpoint = TARPIT
def setUp(self): Configuration.configure(account_id='test_account_id', secret_key='test_secret_key')
def test_empty_credentials(self): with self.assertRaises(ConfigurationError): Configuration.configure(account_id=None, secret_key=None) configuration = Configuration.instantiate()
def setUp(self): Configuration.configure(account_id='test_account_id', secret_key='test_secret_key') Configuration.agent_framework = Version('Yandex.Money.Framework', '0.0.1') Configuration.agent_cms = Version('Yandex.Money.Cms', '0.0.2') Configuration.agent_module = Version('Yandex.Money.Module', '0.0.3')