File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ def test_notebook_password():
137
137
assert nb .password != ''
138
138
passwd_check (nb .password , password )
139
139
140
- class StopTestApp (notebookapp .NbserverStopApp ):
140
+ class StopAppTest (notebookapp .NbserverStopApp ):
141
141
"""For testing the logic of NbserverStopApp."""
142
142
def __init__ (self , ** kwargs ):
143
143
super ().__init__ (** kwargs )
@@ -166,15 +166,15 @@ def list_running_servers(runtime_dir):
166
166
167
167
# test stop with a match
168
168
with mock_servers :
169
- app = StopTestApp ()
169
+ app = StopAppTest ()
170
170
app .initialize (['105' ])
171
171
app .start ()
172
172
assert len (app .servers_shut_down ) == 1
173
173
assert app .servers_shut_down [0 ]['port' ] == 105
174
174
175
175
# test no match
176
176
with mock_servers , patch ('os.kill' ) as os_kill :
177
- app = StopTestApp ()
177
+ app = StopAppTest ()
178
178
app .initialize (['999' ])
179
179
with pytest .raises (SystemExit ) as exc :
180
180
app .start ()
You can’t perform that action at this time.
0 commit comments