22
33from mpt_api_client .http import AsyncHTTPClient , HTTPClient
44from mpt_api_client .mpt_client import AsyncMPTClient , MPTClient
5- from mpt_api_client .resources import AsyncCatalog , AsyncCommerce , Catalog , Commerce
5+ from mpt_api_client .resources import (
6+ AsyncAudit ,
7+ AsyncBilling ,
8+ AsyncCatalog ,
9+ AsyncCommerce ,
10+ Audit ,
11+ Billing ,
12+ Catalog ,
13+ Commerce ,
14+ )
615from tests .conftest import API_TOKEN , API_URL
716
817
918def test_mpt_client () -> None :
1019 mpt = MPTClient .from_config (base_url = API_URL , api_token = API_TOKEN )
1120 commerce = mpt .commerce
1221 catalog = mpt .catalog
22+ audit = mpt .audit
23+ billing = mpt .billing
1324
1425 assert isinstance (mpt , MPTClient )
1526 assert isinstance (commerce , Commerce )
1627 assert isinstance (catalog , Catalog )
28+ assert isinstance (audit , Audit )
29+ assert isinstance (billing , Billing )
1730
1831
1932def test_mpt_client_env (monkeypatch : pytest .MonkeyPatch ) -> None :
@@ -30,10 +43,14 @@ def test_async_mpt_client() -> None:
3043 mpt = AsyncMPTClient .from_config (base_url = API_URL , api_token = API_TOKEN )
3144 commerce = mpt .commerce
3245 catalog = mpt .catalog
46+ audit = mpt .audit
47+ billing = mpt .billing
3348
3449 assert isinstance (mpt , AsyncMPTClient )
3550 assert isinstance (commerce , AsyncCommerce )
3651 assert isinstance (catalog , AsyncCatalog )
52+ assert isinstance (audit , AsyncAudit )
53+ assert isinstance (billing , AsyncBilling )
3754
3855
3956def test_async_mpt_client_env (monkeypatch : pytest .MonkeyPatch ) -> None :
0 commit comments