We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d685eea commit bd5f462Copy full SHA for bd5f462
tests/test_parsing.py
@@ -15,12 +15,14 @@
15
def valid(data):
16
alt = data["alt"]
17
title = data["title"]
18
- parsed = emojificate(alt)
19
- assert alt in parsed
20
- assert 'alt="{}"'.format(alt) in parsed
21
22
- assert title in parsed
23
- assert 'aria-label="Emoji: {}"'.format(title) in parsed
+ for filetype in ["png", "svg"]:
+ parsed = emojificate(alt, filetype=filetype)
+ assert alt in parsed
+ assert 'alt="{}"'.format(alt) in parsed
+
24
+ assert title in parsed
25
+ assert 'aria-label="Emoji: {}"'.format(title) in parsed
26
27
28
@pytest.mark.skipif(sys.version_info.minor < 7, reason="requires Python 3.7 or higher")
0 commit comments