Skip to content

Commit 957310a

Browse files
Potential fixes for 3 code quality findings (#44)
* Apply suggested fix to tests/test_repl/test_shell.py from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> * Apply suggested fix to tests/test_repl/test_shell.py from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> * Apply suggested fix to tests/test_repl/test_shell.py from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent 1fbdc82 commit 957310a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_repl/test_shell.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def mock_eof(prompt):
7676
monkeypatch.setattr(builtins, "input", mock_eof)
7777

7878
@recline.command(atstart=True)
79-
def startup():
79+
def startup_test_command():
8080
nonlocal startup_command_ran
8181
startup_command_ran = True
8282

@@ -132,7 +132,7 @@ def test_run_non_repl():
132132
"""
133133

134134
@recline.command(name="single command non repl")
135-
def single_cmd():
135+
def single_cmd_non_repl():
136136
return 73
137137

138138
assert shell.relax(argv=["ut_program", "single", "command", "non", "repl"], repl_mode=False) == 73
@@ -144,7 +144,7 @@ def test_run_single_command():
144144
"""
145145

146146
@recline.command(name="single command one shot")
147-
def single_cmd():
147+
def single_cmd_one_shot():
148148
return 73
149149

150150
assert shell.relax(argv=["ut_program"], single_command="single command one shot") == 73

0 commit comments

Comments
 (0)