Download src/conftest.py from SlayerLab/polish-dynaword: direct link, hf CLI and curl.
- Browser
- Download file 884 Bytes
-
https://huggingface.co/datasets/SlayerLab/polish-dynaword/resolve/refs%2Fpr%2F21/src/conftest.py
- Command line
-
hf download hf://datasets/SlayerLab/polish-dynaword@refs/pr/21/src/conftest.py
-
curl -L -o conftest.py https://huggingface.co/datasets/SlayerLab/polish-dynaword/resolve/refs%2Fpr%2F21/src/conftest.py
884 Bytes
| """Some registered sources have no data/ folder in this checkout: a release tag leaves out the | |
| sources on main that it does not release, and a source held off main (sejm_interpellations, | |
| kultura_bez_barier_pl) has none on main either. The test modules that check those sources' shipped files skip there; | |
| where the folders are, they run.""" | |
| import pytest | |
| import make_docs | |
| SHIPPED_FILE_TESTS = { | |
| "test_kultura_bez_barier_contribution.py": "kultura_bez_barier_pl", | |
| "test_licence_basis_kultura_bez_barier_pl.py": "kultura_bez_barier_pl", | |
| "test_sejm_interpellations_contract.py": "sejm_interpellations", | |
| } | |
| def pytest_collection_modifyitems(items): | |
| for item in items: | |
| source = SHIPPED_FILE_TESTS.get(item.path.name) | |
| if source and make_docs.held_out(source): | |
| item.add_marker(pytest.mark.skip(reason=f"data/{source}/ is not in this checkout")) | |