mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
refactor: Do config file existence check in Config.read()
This commit is contained in:
@@ -74,6 +74,11 @@ def test_core_config(app, status, warning):
|
||||
assert cfg['project'] == cfg.project == 'Sphinx Tests'
|
||||
|
||||
|
||||
def test_config_not_found(tempdir):
|
||||
with pytest.raises(ConfigError):
|
||||
Config.read(tempdir)
|
||||
|
||||
|
||||
def test_extension_values():
|
||||
config = Config()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user