20 lines
365 B
Python
20 lines
365 B
Python
from favro_sync.favro_markdown import parse_card_contents, format_card_contents
|
|
|
|
EXAMPLE_TEXT_1 = '''
|
|
|
|
# Hello world
|
|
|
|
Test description
|
|
|
|
## Other header
|
|
|
|
1. Derp
|
|
2. Derp
|
|
3. Derp
|
|
'''.strip()
|
|
|
|
def test_parse_and_render():
|
|
card_contents = parse_card_contents(EXAMPLE_TEXT_1)
|
|
print(card_contents)
|
|
assert format_card_contents(card_contents) == EXAMPLE_TEXT_1
|