Skip to content

Commit 39bf1b6

Browse files
committed
lint
1 parent bf32e95 commit 39bf1b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python_files/vscode_pytest/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def pytest_exception_interact(node, call, report):
190190
send_execution_message(
191191
os.fsdecode(cwd),
192192
"success",
193-
collected_test if collected_test else None,
193+
collected_test or None,
194194
)
195195

196196

@@ -314,7 +314,7 @@ def pytest_report_teststatus(report, config): # noqa: ARG001
314314
send_execution_message(
315315
os.fsdecode(cwd),
316316
"success",
317-
collected_test if collected_test else None,
317+
collected_test or None,
318318
)
319319
yield
320320

@@ -348,7 +348,7 @@ def pytest_runtest_protocol(item, nextitem): # noqa: ARG001
348348
send_execution_message(
349349
os.fsdecode(cwd),
350350
"success",
351-
collected_test if collected_test else None,
351+
collected_test or None,
352352
)
353353
yield
354354

@@ -1024,7 +1024,7 @@ def get_node_path(
10241024
except Exception as e:
10251025
raise VSCodePytestError(
10261026
f"Error occurred while calculating symlink equivalent from node path: {e}"
1027-
f"\n SYMLINK_PATH: {SYMLINK_PATH}, \n node path: {node_path}, \n cwd: {_CACHED_CWD if _CACHED_CWD else pathlib.Path.cwd()}"
1027+
f"\n SYMLINK_PATH: {SYMLINK_PATH}, \n node path: {node_path}, \n cwd: {_CACHED_CWD or pathlib.Path.cwd()}"
10281028
) from e
10291029
else:
10301030
result = node_path

0 commit comments

Comments
 (0)