diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-01-03 01:05:46 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-01-03 01:06:20 +0900 |
commit | a0e44a7300b12c6946ba13cdf6ffc917298cbf60 (patch) | |
tree | 4ec9c811d7b01a7d310277916289154432c838b6 /tests/test_domain_std.py | |
parent | 08a87d945a8ca7770c589ea878e9b095ed35e6d4 (diff) | |
download | sphinx-git-a0e44a7300b12c6946ba13cdf6ffc917298cbf60.tar.gz |
test: Migrate to Node.findall() from Node.traverse()
Diffstat (limited to 'tests/test_domain_std.py')
-rw-r--r-- | tests/test_domain_std.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_domain_std.py b/tests/test_domain_std.py index 14c2bd3e2..1428bce31 100644 --- a/tests/test_domain_std.py +++ b/tests/test_domain_std.py @@ -36,7 +36,7 @@ def test_process_doc_handle_figure_caption(): ids={'testid': figure_node}, citation_refs={}, ) - document.traverse.return_value = [] + document.findall.return_value = [] domain = StandardDomain(env) if 'testname' in domain.data['labels']: @@ -60,7 +60,7 @@ def test_process_doc_handle_table_title(): ids={'testid': table_node}, citation_refs={}, ) - document.traverse.return_value = [] + document.findall.return_value = [] domain = StandardDomain(env) if 'testname' in domain.data['labels']: |