Skip to content

Commit 51b9627

Browse files
committed
add some tests to test the examples
1 parent 58c5996 commit 51b9627

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/test_module.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from __future__ import unicode_literals
66
import xml.etree.ElementTree as Etree
77
import htmlement
8+
import examples
89
import tempfile
910
import pytest
1011
import io
@@ -340,3 +341,21 @@ def test_parse_filename():
340341
assert root[0].tag == "body"
341342
finally:
342343
os.remove(filename)
344+
345+
346+
# ####################### Examples Tests ####################### #
347+
348+
349+
def test_example_simple():
350+
# Check that there is no errors
351+
examples.example_simple()
352+
353+
354+
def test_example_filter():
355+
# Check that there is no errors
356+
examples.example_filter()
357+
358+
359+
def test_example_complex():
360+
# Check that there is no errors
361+
examples.example_complex()

0 commit comments

Comments
 (0)