From de7ef8afe6a3a158a7dbad55b964c5a74eb35ef7 Mon Sep 17 00:00:00 2001 From: Colin 't Hart Date: Wed, 19 Jun 2024 10:25:29 +0000 Subject: [PATCH] Rename Test to MSS. --- LONG_DESCRIPTION.rst | 2 +- tests/test_client.py | 4 ++-- tests/test_environment.py | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/LONG_DESCRIPTION.rst b/LONG_DESCRIPTION.rst index a6e8be3..bcdc779 100644 --- a/LONG_DESCRIPTION.rst +++ b/LONG_DESCRIPTION.rst @@ -20,7 +20,7 @@ Quick Start Example import swish swish_client = swish.SwishClient( - environment=swish.Environment.Test, + environment=swish.Environment.MSS, merchant_swish_number='1231181189', cert=('/path/to/cert.pem', '/path/to/key.pem'), verify='/path/to/swish.pem' diff --git a/tests/test_client.py b/tests/test_client.py index 84d08ff..bfd3e00 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -14,14 +14,14 @@ def setUp(self): cert = (cert_file_path, key_file_path) verify = os.path.join(current_folder, "swish.pem") self.client = swish.SwishClient( - environment=swish.Environment.Test, + environment=swish.Environment.MSS, merchant_swish_number='1231181189', cert=cert, verify=verify ) def test_client(self): - self.assertEqual(self.client.environment.base_url, swish.Environment.Test.base_url) + self.assertEqual(self.client.environment.base_url, swish.Environment.MSS.base_url) self.assertEqual(self.client.merchant_swish_number, '1231181189') def test_create_payment_ecommerce(self): diff --git a/tests/test_environment.py b/tests/test_environment.py index e127dc6..3f00b43 100644 --- a/tests/test_environment.py +++ b/tests/test_environment.py @@ -7,17 +7,17 @@ class EnvironmentTestCase(unittest.TestCase): def test_parse_environment_string(self): - environment = Environment.parse_environment("test") - self.assertEqual(environment, Environment.Test) + environment = Environment.parse_environment("mss") + self.assertEqual(environment, Environment.MSS) def test_parse_environment_string_error(self): with self.assertRaises(ConfigurationError): Environment.parse_environment("invalid") def test_parse_environment_object(self): - environment = Environment.parse_environment(Environment.Test) - self.assertEqual(environment, Environment.Test) + environment = Environment.parse_environment(Environment.MSS) + self.assertEqual(environment, Environment.MSS) def test_environment_str(self): - environment = Environment.Test + environment = Environment.MSS self.assertEqual(str(environment), environment.name)