def test_sphinx_rinoh_paper_size_removed(caplog, tmp_path): app = create_sphinx_app(tmp_path, rinoh_paper_size='A4') with caplog.at_level(logging.WARNING): variable_removed_warnings(app.config, LOGGER) assert "Support for 'rinoh_paper_size' has been removed" in caplog.text
def test_sphinx_rinoh_metadata_removed(caplog, tmp_path): app = create_sphinx_app(tmp_path, rinoh_metadata=dict(bla=5)) with caplog.at_level(logging.WARNING): variable_removed_warnings(app.config, LOGGER) assert "Support for 'rinoh_metadata' has been removed" in caplog.text
def test_sphinx_default_deprecation_warning(caplog, tmp_path): app = create_sphinx_app(tmp_path) with caplog.at_level(logging.WARNING): variable_removed_warnings(app.config, LOGGER) assert caplog.text == ''
def test_sphinx_rinoh_domain_indices_removed(caplog, tmp_path): app = create_sphinx_app(tmp_path, rinoh_domain_indices=False) with caplog.at_level(logging.WARNING): variable_removed_warnings(app.config, LOGGER) assert "Support for 'rinoh_domain_indices' has been removed" in caplog.text