summaryrefslogtreecommitdiff
path: root/tests/test_intl.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_intl.py')
-rw-r--r--tests/test_intl.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/test_intl.py b/tests/test_intl.py
index c8c5a69e9..b94fe85df 100644
--- a/tests/test_intl.py
+++ b/tests/test_intl.py
@@ -525,7 +525,8 @@ def test_gettext_buildr_ignores_only_directive(app):
def test_gettext_dont_rebuild_mo(make_app, app_params, build_mo):
# --- don't rebuild by .mo mtime
def get_number_of_update_targets(app_):
- updated = app_.env.update(app_.config, app_.srcdir, app_.doctreedir)
+ app_.env.find_files(app_.config, app_.builder)
+ _, updated, _ = app_.env.get_outdated_files(config_changed=False)
return len(updated)
args, kwargs = app_params
@@ -706,12 +707,14 @@ def test_html_rebuild_mo(app):
app.build()
# --- rebuild by .mo mtime
app.builder.build_update()
- updated = app.env.update(app.config, app.srcdir, app.doctreedir)
+ app.env.find_files(app.config, app.builder)
+ _, updated, _ = app.env.get_outdated_files(config_changed=False)
assert len(updated) == 0
mtime = (app.srcdir / 'xx' / 'LC_MESSAGES' / 'bom.mo').stat().st_mtime
(app.srcdir / 'xx' / 'LC_MESSAGES' / 'bom.mo').utime((mtime + 5, mtime + 5))
- updated = app.env.update(app.config, app.srcdir, app.doctreedir)
+ app.env.find_files(app.config, app.builder)
+ _, updated, _ = app.env.get_outdated_files(config_changed=False)
assert len(updated) == 1