conftest.py 850 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. from pathlib import Path
  2. import pytest
  3. @pytest.fixture
  4. def xml_data_path():
  5. return Path(__file__).parent.parent / "data" / "xml"
  6. @pytest.fixture
  7. def xml_books(xml_data_path, datapath):
  8. return datapath(xml_data_path / "books.xml")
  9. @pytest.fixture
  10. def xml_doc_ch_utf(xml_data_path, datapath):
  11. return datapath(xml_data_path / "doc_ch_utf.xml")
  12. @pytest.fixture
  13. def xml_baby_names(xml_data_path, datapath):
  14. return datapath(xml_data_path / "baby_names.xml")
  15. @pytest.fixture
  16. def kml_cta_rail_lines(xml_data_path, datapath):
  17. return datapath(xml_data_path / "cta_rail_lines.kml")
  18. @pytest.fixture
  19. def xsl_flatten_doc(xml_data_path, datapath):
  20. return datapath(xml_data_path / "flatten_doc.xsl")
  21. @pytest.fixture
  22. def xsl_row_field_output(xml_data_path, datapath):
  23. return datapath(xml_data_path / "row_field_output.xsl")