Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dalthviz committed Jan 27, 2022
1 parent 4b9c2ca commit 4d668bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qtpy/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import os
from pathlib import Path

import pytest

from qtpy import QtGui

def pytest_configure(config):
"""Configure the test environment."""
Expand Down Expand Up @@ -72,6 +70,8 @@ def pytest_report_header(config):

@pytest.fixture
def pdf_writer(qtbot):
from pathlib import Path
from qtpy import QtGui
output_path = Path('test.pdf')
device = QtGui.QPdfWriter(str(output_path))
yield device, output_path
Expand Down

0 comments on commit 4d668bc

Please sign in to comment.