mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
11 lines
310 B
Python
11 lines
310 B
Python
"""Tests for ``record_dependencies``."""
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.mark.sphinx('html', testroot='environment-record-dependencies')
|
|
def test_record_dependencies_cleared(app):
|
|
app.builder.read()
|
|
assert app.env.dependencies['index'] == set()
|
|
assert app.env.dependencies['api'] == {'example_module.py'}
|