Commit a61c1d85 authored by Michal Čihař's avatar Michal Čihař

Make edit_unit work with current class

parent af69bae7
......@@ -100,14 +100,14 @@ class ViewTestCase(RepoTestCase):
unit.save_backend(self.get_request('/'))
def edit_unit(self, source, target, **kwargs):
unit = self.translation.unit_set.get(source=source)
unit = self.get_translation().unit_set.get(source=source)
params = {
'checksum': unit.checksum,
'target': target,
}
params.update(kwargs)
return self.client.post(
self.translate_url,
self.get_translation().get_translate_url(),
params
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment