Skip to content

Commit 2913333

Browse files
committed
Fixed str/Path spec tests.
1 parent 98a725a commit 2913333

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/test_job_spec.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@ def test_environment_types() -> None:
3737
spec.environment = {'foo': 'biz'}
3838
assert spec.environment['foo'] == 'biz'
3939

40+
41+
def test_path_conversion() -> None:
4042
assert JobSpec(directory=os.path.join("test", "path")).directory == Path("test") / "path"
41-
assert JobSpec(stdin_path=os.path.join("test", "path")).directory == Path("test") / "path"
42-
assert JobSpec(stdout_path=os.path.join("test", "path")).directory == Path("test") / "path"
43-
assert JobSpec(stderr_path=os.path.join("test", "path")).directory == Path("test") / "path"
44-
assert JobSpec(pre_launch=os.path.join("test", "path")).directory == Path("test") / "path"
45-
assert JobSpec(post_launch=os.path.join("test", "path")).directory == Path("test") / "path"
43+
assert JobSpec(stdin_path=os.path.join("test", "path")).stdin_path == Path("test") / "path"
44+
assert JobSpec(stdout_path=os.path.join("test", "path")).stdout_path == Path("test") / "path"
45+
assert JobSpec(stderr_path=os.path.join("test", "path")).stderr_path == Path("test") / "path"
46+
assert JobSpec(pre_launch=os.path.join("test", "path")).pre_launch == Path("test") / "path"
47+
assert JobSpec(post_launch=os.path.join("test", "path")).post_launch == Path("test") / "path"
4648

4749

4850
test_environment_types()

0 commit comments

Comments
 (0)