Skip to content

Commit 2040a57

Browse files
committed
Fixed some linting issues
1 parent d14b432 commit 2040a57

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/_test_tools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def _read_file(path: Optional[Path]) -> str:
2828
return f.read()
2929

3030

31-
def assert_completed(job: Job, status: Optional[JobStatus], attached=False) -> None:
31+
def assert_completed(job: Job, status: Optional[JobStatus], attached: bool = False) -> None:
3232
assert status is not None
3333
if status.state != JobState.COMPLETED:
3434
if not attached:
@@ -42,6 +42,7 @@ def assert_completed(job: Job, status: Optional[JobStatus], attached=False) -> N
4242
raise AssertionError('Job not completed. Exit code: %s, Status message: %s'
4343
% (status.exit_code, status.message))
4444

45+
4546
def _get_executor_instance(ep: ExecutorTestParams, job: Optional[Job] = None) -> JobExecutor:
4647
if job is not None:
4748
assert job.spec is not None

tests/user_guide/test_prelaunch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from pathlib import Path
33

44
from _test_tools import assert_completed
5-
from psij import Job, JobSpec, JobExecutor, JobState
5+
from psij import Job, JobSpec, JobExecutor
66

77

88
def test_user_guide_pre_launch() -> None:

0 commit comments

Comments
 (0)