diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-06-25 11:26:39 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-06-25 11:26:39 +0200 |
commit | 3151068b458f46bba67a49ea3688c7789e728faf (patch) | |
tree | ae0e359f469afa8037babc036af244b1cdbd7ab3 /archaeological_operations/tests.py | |
parent | 525e57c74d876689dc4ca3aabc324a07cddb41fb (diff) | |
parent | cde72747458d0639f4b037b9e6a486a7e63c88bf (diff) | |
download | Ishtar-3151068b458f46bba67a49ea3688c7789e728faf.tar.bz2 Ishtar-3151068b458f46bba67a49ea3688c7789e728faf.zip |
Merge branch 'stable'
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) |