File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff 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
4850test_environment_types ()
You can’t perform that action at this time.
0 commit comments