Specific test
This commit is contained in:
parent
7c714bc438
commit
3561189df1
36
test/test_integration_format_specific.py
Normal file
36
test/test_integration_format_specific.py
Normal 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
|
Loading…
Reference in New Issue
Block a user