1
0
favro-sync/test/test_client.py
Jon Michael Aanes 5b1502cdea
Some checks failed
Test Python / Test (push) Failing after 25s
Read-only support for tags and assignments
2024-09-28 12:54:34 +02:00

23 lines
574 B
Python

from favro_sync import secrets
from favro_sync.favro_client import FavroClient, OrganizationId
# TODO: Skip if no secrets
def test_create_client():
client = FavroClient(
favro_org_id=OrganizationId(secrets.favro_org_id()),
favro_username=secrets.favro_username(),
favro_password=secrets.favro_password(),
read_only=True,
)
assert client is not None
client.check_logged_in()
return client
def test_get_card():
client = test_create_client()
card = next(client.get_todo_list_cards())
assert card is not None