1
0

Specific test
All checks were successful
Run Python tests (through Pytest) / Test (push) Successful in 28s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 24s

This commit is contained in:
Jon Michael Aanes 2025-03-13 13:28:48 +01:00
parent 7c714bc438
commit 3561189df1

View File

@ -0,0 +1,36 @@
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