Skip to content

Commit 0723596

Browse files
committed
Rename StopTestApp -> StopAppTest to reflect the original class better.
1 parent 34b4f7e commit 0723596

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

notebook/tests/test_notebookapp.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def test_notebook_password():
137137
assert nb.password != ''
138138
passwd_check(nb.password, password)
139139

140-
class StopTestApp(notebookapp.NbserverStopApp):
140+
class StopAppTest(notebookapp.NbserverStopApp):
141141
"""For testing the logic of NbserverStopApp."""
142142
def __init__(self, **kwargs):
143143
super().__init__(**kwargs)
@@ -166,15 +166,15 @@ def list_running_servers(runtime_dir):
166166

167167
# test stop with a match
168168
with mock_servers:
169-
app = StopTestApp()
169+
app = StopAppTest()
170170
app.initialize(['105'])
171171
app.start()
172172
assert len(app.servers_shut_down) == 1
173173
assert app.servers_shut_down[0]['port'] == 105
174174

175175
# test no match
176176
with mock_servers, patch('os.kill') as os_kill:
177-
app = StopTestApp()
177+
app = StopAppTest()
178178
app.initialize(['999'])
179179
with pytest.raises(SystemExit) as exc:
180180
app.start()

0 commit comments

Comments
 (0)