File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 6
6
@pytest .mark .asyncio
7
7
class TestClient :
8
8
async def test_basic_usage (self ):
9
- app = await client .all_apps ()
10
- app = app [0 ]
9
+ app = await client .app ('6c8e9b785cce4f99984f9ca1c5470d51' )
11
10
await app .data ()
12
11
await app .status ()
13
12
await app .logs ()
14
13
await app .backup ()
15
14
await app .data ()
16
15
await app .github_integration (GITHUB_ACCESS_TOKEN )
17
16
await app .last_deploys ()
17
+ await app .domain_analytics ()
18
+ await app .set_custom_domain ('test.com.br' )
Original file line number Diff line number Diff line change @@ -154,6 +154,22 @@ async def test(response: Response):
154
154
GITHUB_ACCESS_TOKEN ,
155
155
)
156
156
157
+ async def test_domain_analytics (self ):
158
+ @client .on_request (Endpoint .domain_analytics ())
159
+ async def test (response : Response ):
160
+ assert isinstance (response , Response )
161
+
162
+ await client .domain_analytics ('6c8e9b785cce4f99984f9ca1c5470d51' )
163
+
164
+ async def test_set_custom_domain (self ):
165
+ @client .on_request (Endpoint .custom_domain ())
166
+ async def test (response : Response ):
167
+ assert isinstance (response , Response )
168
+
169
+ await client .set_custom_domain (
170
+ '6c8e9b785cce4f99984f9ca1c5470d51' , 'test.com.br'
171
+ )
172
+
157
173
async def test_delete_app (self ):
158
174
@client .on_request (Endpoint .delete_app ())
159
175
async def test (response : Response ):
You can’t perform that action at this time.
0 commit comments