Skip to content

Commit f978ed9

Browse files
authored
Move data for test to testdata (#82)
1 parent c734ade commit f978ed9

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
include MANIFEST.in Makefile
22
include cwlupgrader/py.typed
3-
include tests/*.cwl
3+
recursive-include testdata *.cwl

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
packages=["cwlupgrader", "cwlupgrader.tests"],
2525
include_package_data=True,
2626
package_dir={"cwlupgrader.tests": "tests"},
27-
package_data={"cwlupgrader.tests": ["*.cwl"]},
27+
package_data={"cwlupgrader.tests": ["../testdata/**/*.cwl"]},
2828
install_requires=[
2929
"setuptools",
3030
"ruamel.yaml >= 0.14.12, < 0.17.18",
File renamed without changes.
File renamed without changes.

tests/test_complete.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99
def test_draft3_workflow(tmp_path: Path) -> None:
1010
"""Basic draft3 to CWL v1.1 test."""
11-
main([f"--dir={tmp_path}", "--v1-only", get_data("tests/draft-3-wf.cwl")])
11+
main([f"--dir={tmp_path}", "--v1-only", get_data("testdata/draft-3/wf.cwl")])
1212
result = filecmp.cmp(
13-
get_data("tests/draft-3-wf-v1.0.cwl"),
14-
tmp_path / "draft-3-wf.cwl",
13+
get_data("testdata/v1.0/wf.cwl"),
14+
tmp_path / "wf.cwl",
1515
shallow=False,
1616
)
1717
assert result

0 commit comments

Comments
 (0)