generated from readthedocs/tutorial-template
-
Notifications
You must be signed in to change notification settings - Fork 5
/
conftest.py
36 lines (23 loc) · 760 Bytes
/
conftest.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import pytest
from minestrone import HTML
@pytest.fixture
def html_doc(html_doc_str) -> HTML:
return HTML(html_doc_str)
@pytest.fixture
def html_doc_str() -> str:
with open("tests/samples/html_doc.html", "r") as f:
return f.read()
@pytest.fixture
def html_fragment(html_fragment_str) -> HTML:
return HTML(html_fragment_str)
@pytest.fixture
def html_fragment_str() -> str:
with open("tests/samples/html_fragment.html", "r") as f:
return f.read()
@pytest.fixture
def html_unicorn_fragment(html_unicorn_fragment_str) -> HTML:
return HTML(html_unicorn_fragment_str)
@pytest.fixture
def html_unicorn_fragment_str() -> str:
with open("tests/samples/html_unicorn_fragment.html", "r") as f:
return f.read()