diff --git a/securedrop/tests/test_i18n_tool.py b/securedrop/tests/test_i18n_tool.py index 26b1ad28b0..a1228692b8 100644 --- a/securedrop/tests/test_i18n_tool.py +++ b/securedrop/tests/test_i18n_tool.py @@ -229,21 +229,21 @@ def test_update_docs(self, tmpdir, caplog): git.init(**k) git.config('user.email', "you@example.com", **k) git.config('user.name', "Your Name", **k) - os.mkdir(join(str(tmpdir), 'includes')) - touch('includes/l10n.txt', **k) - git.add('includes/l10n.txt', **k) + os.makedirs(join(str(tmpdir), 'docs/includes')) + touch('docs/includes/l10n.txt', **k) + git.add('docs/includes/l10n.txt', **k) git.commit('-m', 'init', **k) i18n_tool.I18NTool().main([ '--verbose', 'update-docs', - '--documentation-dir', str(tmpdir)]) + '--docs-repo-dir', str(tmpdir)]) assert 'l10n.txt updated' in caplog.text caplog.clear() i18n_tool.I18NTool().main([ '--verbose', 'update-docs', - '--documentation-dir', str(tmpdir)]) + '--docs-repo-dir', str(tmpdir)]) assert 'l10n.txt already up to date' in caplog.text def test_update_from_weblate(self, tmpdir, caplog):