Skip to content

Commit

Permalink
Fix i18n_tool test
Browse files Browse the repository at this point in the history
  • Loading branch information
eloquence committed Sep 28, 2020
1 parent 5656f01 commit 9eb1013
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions securedrop/tests/test_i18n_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 9eb1013

Please sign in to comment.