Skip to content

Commit 28d0378

Browse files
committed
fix tests
1 parent be4018e commit 28d0378

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

cwl_utils/inputs_schema_gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def cwl_to_jsonschema(cwl_obj: Workflow | CommandLineTool) -> Any:
339339
# Initialise the schema from the workflow input json schema template
340340

341341
with (
342-
files("cwl-utils")
342+
files("cwl_utils")
343343
.joinpath("./templates/workflow_input_json_schema_template.json")
344344
.open() as template_h
345345
):

cwl_utils/tests/load_cwl_by_path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from cwl_utils.parser import load_document_by_uri, save
1111

1212
# File Input - This is the only thing you will need to adjust or take in as an input to your function:
13-
cwl_file = Path("testdata/md5sum.cwl") # or a plain string works as well
13+
cwl_file = Path("../testdata/md5sum.cwl") # or a plain string works as well
1414

1515
# Import CWL Object
1616
cwl_obj = load_document_by_uri(cwl_file)

cwl_utils/tests/test_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
def test_load_example() -> None:
1010
"""Test the load_cwl_by_path.py script."""
1111
cwd = Path.cwd()
12-
target = files("cwl_utils/tests").joinpath("load_cwl_by_path.py")
12+
target = files("cwl_utils").joinpath("tests/load_cwl_by_path.py")
1313
with as_file(target) as target_path:
1414
os.chdir(target_path.parent)
1515
result_raw = runpy.run_path(str(target_path))

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ include = [
9191
"/cwl_utils/**.py",
9292
"/cwl_utils/*.js",
9393
"/cwl_utils/parser/*.py",
94-
"/cwl_utils/tests/**.py",
94+
"/cwl_utils/tests/*.py",
9595
"/cwl_utils/templates/*",
9696
"/cwl_utils/testdata/*.cwl",
9797
"/cwl_utils/testdata/*.yaml",
@@ -131,7 +131,7 @@ include = [
131131
"/cwl_utils/**.py",
132132
"/cwl_utils/*.js",
133133
"/cwl_utils/parser/*.py",
134-
"/cwl_utils/tests/**.py",
134+
"/cwl_utils/tests/*.py",
135135
"/cwl_utils/templates/*",
136136
"/cwl_utils/testdata/*.cwl",
137137
"/cwl_utils/testdata/*.yaml",

0 commit comments

Comments
 (0)