Skip to content

Commit bb004e4

Browse files
committed
more fixes for test_invalid_preferred_dir_not_root_subdir
1 parent 9c109a5 commit bb004e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_serverapp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def test_invalid_preferred_dir_not_root_subdir(tmp_path, jp_configurable_servera
309309
with pytest.raises(TraitError) as error:
310310
app = jp_configurable_serverapp(root_dir=path, preferred_dir=not_subdir_path)
311311

312-
assert "must be equal or a subdir of root_dir:" in str(error)
312+
assert "preferred_dir " in str(error)
313313

314314

315315
def test_invalid_preferred_dir_not_root_subdir_set(tmp_path, jp_configurable_serverapp):
@@ -321,7 +321,7 @@ def test_invalid_preferred_dir_not_root_subdir_set(tmp_path, jp_configurable_ser
321321
with pytest.raises(TraitError) as error:
322322
app.preferred_dir = not_subdir_path
323323

324-
assert "must be equal or a subdir of root_dir:" in str(error)
324+
assert "preferred_dir " in str(error)
325325

326326

327327
def test_observed_root_dir_updates_preferred_dir(tmp_path, jp_configurable_serverapp):

0 commit comments

Comments
 (0)