Skip to content

Commit d9d3a09

Browse files
committed
Remove unused is_same_dir variable in add_test_file
Deleted the is_same_dir variable and related comments from add_test_file as it was not used in the function.
1 parent 5cadc93 commit d9d3a09

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

shiny/_main_add_test.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ def path_does_not_exist(x: Path) -> bool | str:
7373
if not test_file.name.startswith("test_"):
7474
return "Test file must start with 'test_'"
7575

76-
# if app path directory is the same as the test file directory, use `local_app`
77-
# otherwise, use `create_app_fixture`
78-
is_same_dir = app_file.parent == test_file.parent
79-
8076
test_name = test_file.name.replace(".py", "")
8177
rel_path = os.path.relpath(app_file, test_file.parent)
8278

0 commit comments

Comments
 (0)