Browse Source

made DummySheet available to all tests

pull/1/head
Holger Frey 5 years ago
parent
commit
2c3a13f342
  1. 9
      tests/conftest.py
  2. 9
      tests/test_superx_parser.py

9
tests/conftest.py

@ -3,6 +3,15 @@ from pathlib import Path
import pytest import pytest
class DummySheet:
def __init__(self, data):
self._data = data
@property
def rows(self):
return iter(self._data)
@pytest.fixture @pytest.fixture
def example_file(request): def example_file(request):
root_dir = Path(request.config.rootdir) root_dir = Path(request.config.rootdir)

9
tests/test_superx_parser.py

@ -4,15 +4,6 @@
import pytest import pytest
class DummySheet:
def __init__(self, data):
self._data = data
@property
def rows(self):
return iter(self._data)
@pytest.fixture @pytest.fixture
def example_workbook(example_file): def example_workbook(example_file):
import openpyxl import openpyxl

Loading…
Cancel
Save