diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-06-25 11:25:52 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-06-25 11:25:52 +0200 |
commit | d5b369ec8841a6bbffc4caf44dc90743c96bb18c (patch) | |
tree | 554f5393dd43550a803c1669ed349e89c1fc60be /archaeological_operations/tests.py | |
parent | 0357143da9fcac710dd40d85af2910f81f871b90 (diff) | |
download | Ishtar-d5b369ec8841a6bbffc4caf44dc90743c96bb18c.tar.bz2 Ishtar-d5b369ec8841a6bbffc4caf44dc90743c96bb18c.zip |
Import: fix unit import on MCC context record
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r-- | archaeological_operations/tests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index 527e10295..396f850af 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -51,6 +51,12 @@ class ImportOperationTest(TestCase): '../archaeological_operations/fixtures/initial_data-fr.json'] test_operations = True + def setTargetKey(self, target, key, value): + tg = TargetKey.objects.get(target__target=target, key=key) + tg.value = value + tg.is_set = True + tg.save() + def setUp(self): self.username, self.password, self.user = create_superuser() self.ishtar_user = IshtarUser.objects.get(pk=self.user.pk) |