from favro_sync.favro_client import SeqId from favro_sync.favro_fuse import to_card_contents from favro_sync.favro_markdown import CardFileFormatter from .test_client import create_client, needs_secrets FORMATTER = CardFileFormatter() EXPECTED_CONTENTS = """ --- Sprint status: Done Type/Status: Card aliases: - ZkCompiler AES test - 'PAR-8723: ZkCompiler AES test' archived: true assignments: - '[[Jon Michael Aanes]]' dependencies: - '[[PAR-8720.md]]' url: https://favro.com/organization/24ec694f2d69b0a2477d368d?card=par-8723 --- # ZkCompiler AES test """.strip() @needs_secrets def test_to_card_contents(): client = create_client() card = client.get_card(SeqId(8723)) contents = to_card_contents(card, client) assert contents is not None assert contents.is_archived assert FORMATTER.format_card_contents(contents) == EXPECTED_CONTENTS