summaryrefslogtreecommitdiffstats
path: root/tests/test_environment_record_dependencies.py
blob: 0a17253c09173fcfd47c8fe003c5203a4613b69e (plain)
1
2
3
4
5
6
7
8
9
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'}