Skip to content

Commit a72a35a

Browse files
test: add unit tests for various LomiClient services to enhance test coverage
1 parent bc3063a commit a72a35a

15 files changed

Lines changed: 165 additions & 0 deletions

tests/test_accounts.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import unittest
2+
from lomi import LomiClient
3+
4+
class TestAccountsService(unittest.TestCase):
5+
def setUp(self):
6+
self.client = LomiClient(api_key="test_key")
7+
8+
def test_service_initialized(self):
9+
self.assertIsNotNone(self.client.accounts)
10+
11+
# TODO: Add mock tests for Accounts methods

tests/test_beneficiary_payouts.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import unittest
2+
from lomi import LomiClient
3+
4+
class TestBeneficiaryPayoutsService(unittest.TestCase):
5+
def setUp(self):
6+
self.client = LomiClient(api_key="test_key")
7+
8+
def test_service_initialized(self):
9+
self.assertIsNotNone(self.client.beneficiary_payouts)
10+
11+
# TODO: Add mock tests for BeneficiaryPayouts methods

tests/test_checkout_sessions.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import unittest
2+
from lomi import LomiClient
3+
4+
class TestCheckoutSessionsService(unittest.TestCase):
5+
def setUp(self):
6+
self.client = LomiClient(api_key="test_key")
7+
8+
def test_service_initialized(self):
9+
self.assertIsNotNone(self.client.checkout_sessions)
10+
11+
# TODO: Add mock tests for CheckoutSessions methods

tests/test_customers.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import unittest
2+
from lomi import LomiClient
3+
4+
class TestCustomersService(unittest.TestCase):
5+
def setUp(self):
6+
self.client = LomiClient(api_key="test_key")
7+
8+
def test_service_initialized(self):
9+
self.assertIsNotNone(self.client.customers)
10+
11+
# TODO: Add mock tests for Customers methods

tests/test_discount_coupons.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import unittest
2+
from lomi import LomiClient
3+
4+
class TestDiscountCouponsService(unittest.TestCase):
5+
def setUp(self):
6+
self.client = LomiClient(api_key="test_key")
7+
8+
def test_service_initialized(self):
9+
self.assertIsNotNone(self.client.discount_coupons)
10+
11+
# TODO: Add mock tests for DiscountCoupons methods

tests/test_organizations.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import unittest
2+
from lomi import LomiClient
3+
4+
class TestOrganizationsService(unittest.TestCase):
5+
def setUp(self):
6+
self.client = LomiClient(api_key="test_key")
7+
8+
def test_service_initialized(self):
9+
self.assertIsNotNone(self.client.organizations)
10+
11+
# TODO: Add mock tests for Organizations methods

tests/test_payment_links.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import unittest
2+
from lomi import LomiClient
3+
4+
class TestPaymentLinksService(unittest.TestCase):
5+
def setUp(self):
6+
self.client = LomiClient(api_key="test_key")
7+
8+
def test_service_initialized(self):
9+
self.assertIsNotNone(self.client.payment_links)
10+
11+
# TODO: Add mock tests for PaymentLinks methods

tests/test_payment_requests.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import unittest
2+
from lomi import LomiClient
3+
4+
class TestPaymentRequestsService(unittest.TestCase):
5+
def setUp(self):
6+
self.client = LomiClient(api_key="test_key")
7+
8+
def test_service_initialized(self):
9+
self.assertIsNotNone(self.client.payment_requests)
10+
11+
# TODO: Add mock tests for PaymentRequests methods

tests/test_payouts.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import unittest
2+
from lomi import LomiClient
3+
4+
class TestPayoutsService(unittest.TestCase):
5+
def setUp(self):
6+
self.client = LomiClient(api_key="test_key")
7+
8+
def test_service_initialized(self):
9+
self.assertIsNotNone(self.client.payouts)
10+
11+
# TODO: Add mock tests for Payouts methods

tests/test_products.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import unittest
2+
from lomi import LomiClient
3+
4+
class TestProductsService(unittest.TestCase):
5+
def setUp(self):
6+
self.client = LomiClient(api_key="test_key")
7+
8+
def test_service_initialized(self):
9+
self.assertIsNotNone(self.client.products)
10+
11+
# TODO: Add mock tests for Products methods

0 commit comments

Comments
 (0)