diff options
Diffstat (limited to 'tests/test_environment_record_dependencies.py')
-rw-r--r-- | tests/test_environment_record_dependencies.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_environment_record_dependencies.py b/tests/test_environment_record_dependencies.py new file mode 100644 index 0000000..0a17253 --- /dev/null +++ b/tests/test_environment_record_dependencies.py @@ -0,0 +1,10 @@ +"""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'} |