10
10
import pytest
11
11
12
12
from sed .core .config import complete_dictionary
13
- from sed .core .config import ConfigError
14
13
from sed .core .config import load_config
15
14
from sed .core .config import parse_config
16
15
from sed .core .config import save_config
@@ -168,7 +167,7 @@ def test_invalid_config_extra_field():
168
167
)
169
168
invalid_config = default_config .copy ()
170
169
invalid_config ["extra_field" ] = "extra_value"
171
- with pytest .raises (ConfigError ):
170
+ with pytest .raises (ValueError ):
172
171
parse_config (
173
172
invalid_config ,
174
173
folder_config = {},
@@ -188,7 +187,7 @@ def test_invalid_config_missing_field():
188
187
)
189
188
invalid_config = default_config .copy ()
190
189
del invalid_config ["core" ]["loader" ]
191
- with pytest .raises (ConfigError ):
190
+ with pytest .raises (ValueError ):
192
191
parse_config (
193
192
folder_config = {},
194
193
user_config = {},
@@ -208,7 +207,7 @@ def test_invalid_config_wrong_values():
208
207
)
209
208
invalid_config = default_config .copy ()
210
209
invalid_config ["core" ]["loader" ] = "nonexistent"
211
- with pytest .raises (ConfigError ) as e :
210
+ with pytest .raises (ValueError ) as e :
212
211
parse_config (
213
212
folder_config = {},
214
213
user_config = {},
@@ -222,7 +221,7 @@ def test_invalid_config_wrong_values():
222
221
invalid_config ["core" ]["copy_tool" ]["source" ] = "./"
223
222
invalid_config ["core" ]["copy_tool" ]["dest" ] = "./"
224
223
invalid_config ["core" ]["copy_tool" ]["gid" ] = 9999
225
- with pytest .raises (ConfigError ) as e :
224
+ with pytest .raises (ValueError ) as e :
226
225
parse_config (
227
226
folder_config = {},
228
227
user_config = {},
0 commit comments