Skip to content

Commit 6762a41

Browse files
🧪 test: add test_get_all_backups to test_app.py
1 parent 5c12539 commit 6762a41

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_app.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import pytest
22

33
import squarecloud
4+
from squarecloud import BackupInfo
45
from squarecloud.app import Application
56
from tests import GITHUB_ACCESS_TOKEN
67

@@ -44,3 +45,8 @@ async def test_domain_analytics(self, app: Application):
4445
)
4546
async def test_set_custom_domain(self, app: Application):
4647
assert isinstance(await app.set_custom_domain('test.com.br'), str)
48+
49+
async def test_get_all_backups(self, app: Application):
50+
backups = await app.all_backups()
51+
assert isinstance(backups, list)
52+
assert isinstance(backups[0], BackupInfo)

0 commit comments

Comments
 (0)