We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc30a22 commit de1a71fCopy full SHA for de1a71f
1 file changed
tests/e2e/conftest.py
@@ -80,7 +80,7 @@ def project_root_path():
80
return pathlib.Path(__file__).parent.parent.parent
81
82
83
-@pytest.fixture(scope="session")
+@pytest.fixture
84
def pdf_fd():
85
icon_path = pathlib.Path(__file__).parent / "empty.pdf"
86
with pathlib.Path.open(icon_path, "rb") as fd:
@@ -119,10 +119,11 @@ def uuid_str():
119
return str(uuid.uuid4())
120
121
122
123
def logo_fd(project_root_path):
124
file_path = project_root_path / "tests/data/logo.png"
125
- return file_path.open("rb")
+ with file_path.open("rb") as file:
126
+ yield file
127
128
129
@pytest.fixture(scope="session")
0 commit comments