Skip to content

Commit

Permalink
Fix: check test must use unit without fails
Browse files Browse the repository at this point in the history
  • Loading branch information
phlax committed Feb 12, 2016
1 parent 8cebf7a commit 2390dfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/commands/test_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def test_test_checks_unit(capfd):
"""Check a --unit"""

units = Unit.objects.filter(
store__pootle_path="/language0/project0/store0.po",
state=TRANSLATED)
state=TRANSLATED,
target_f__endswith="%s.")
call_command('test_checks', '--unit=%s' % units.first().id)
out, err = capfd.readouterr()
assert 'No errors found' in out
Expand Down

0 comments on commit 2390dfc

Please sign in to comment.