diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:57:07 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:57:07 +0000 |
commit | 46fc0a4b3dccce58c429f408c04cf5cda3af9fb5 (patch) | |
tree | 410d83c434319e0c6f8035cdfa60ae8957b1d909 /tests/test_config | |
parent | Adding upstream version 7.3.7. (diff) | |
download | sphinx-46fc0a4b3dccce58c429f408c04cf5cda3af9fb5.tar.xz sphinx-46fc0a4b3dccce58c429f408c04cf5cda3af9fb5.zip |
Adding upstream version 7.4.7.upstream/7.4.7upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_config')
-rw-r--r-- | tests/test_config/test_config.py | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/test_config/test_config.py b/tests/test_config/test_config.py index e1cb1b0..e58044e 100644 --- a/tests/test_config/test_config.py +++ b/tests/test_config/test_config.py @@ -403,7 +403,7 @@ def test_errors_if_setup_is_not_callable(tmp_path, make_app): assert 'callable' in str(excinfo.value) -@pytest.fixture() +@pytest.fixture def make_app_with_empty_project(make_app, tmp_path): (tmp_path / 'conf.py').write_text('', encoding='utf8') @@ -803,3 +803,19 @@ def test_gettext_compact_command_line_str(): # regression test for #8549 (-D gettext_compact=spam) assert config.gettext_compact == 'spam' + + +def test_root_doc_and_master_doc_are_synchronized(): + c = Config() + assert c.master_doc == 'index' + assert c.root_doc == c.master_doc + + c = Config() + c.master_doc = '1234' + assert c.master_doc == '1234' + assert c.root_doc == c.master_doc + + c = Config() + c.root_doc = '1234' + assert c.master_doc == '1234' + assert c.root_doc == c.master_doc |