from favro_sync.favro_markdown import parse_card_contents, format_card_contents EXAMPLE_TEXT_1 = ''' --- aliases: - Hello World --- # 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) assert card_contents.name == 'Hello World' assert '---' not in card_contents.description print(card_contents) assert False assert format_card_contents(card_contents) == EXAMPLE_TEXT_1