@@ -329,7 +329,7 @@ def test_no_session_name():
329329
330330 sconfig = ConfigReader ._load (format = "yaml" , content = yaml_workspace )
331331
332- with pytest .raises (exc .ConfigError ) as excinfo :
332+ with pytest .raises (exc .WorkspaceError ) as excinfo :
333333 config .validate_schema (sconfig )
334334 assert excinfo .matches (r'requires "session_name"' )
335335
@@ -341,7 +341,7 @@ def test_no_windows():
341341
342342 sconfig = ConfigReader ._load (format = "yaml" , content = yaml_workspace )
343343
344- with pytest .raises (exc .ConfigError ) as excinfo :
344+ with pytest .raises (exc .WorkspaceError ) as excinfo :
345345 config .validate_schema (sconfig )
346346 assert excinfo .match (r'list of "windows"' )
347347
@@ -363,7 +363,7 @@ def test_no_window_name():
363363
364364 sconfig = ConfigReader ._load (format = "yaml" , content = yaml_workspace )
365365
366- with pytest .raises (exc .ConfigError ) as excinfo :
366+ with pytest .raises (exc .WorkspaceError ) as excinfo :
367367 config .validate_schema (sconfig )
368368 assert excinfo .matches ('missing "window_name"' )
369369
@@ -425,6 +425,6 @@ def test_plugins():
425425
426426 sconfig = ConfigReader ._load (format = "yaml" , content = yaml_workspace )
427427
428- with pytest .raises (exc .ConfigError ) as excinfo :
428+ with pytest .raises (exc .WorkspaceError ) as excinfo :
429429 config .validate_schema (sconfig )
430430 assert excinfo .matches ("only supports list type" )
0 commit comments