summaryrefslogtreecommitdiff
path: root/ishtar_common/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-02-10 00:50:47 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-02-10 00:50:47 +0100
commitcbd2b171f288234c8ee000e36085c280baaaf3d2 (patch)
tree99c8f0167abddfafffcecfb1ca5515e8295428d3 /ishtar_common/tests.py
parenta4dfa2db521bbc8db96bb69cbb1fbdf09d667722 (diff)
parent6aec8a5e2693a0ea2a46a8edc3ea1f4406ab8e51 (diff)
downloadIshtar-cbd2b171f288234c8ee000e36085c280baaaf3d2.tar.bz2
Ishtar-cbd2b171f288234c8ee000e36085c280baaaf3d2.zip
Merge branch 'v0.9' into wheezy
Diffstat (limited to 'ishtar_common/tests.py')
-rw-r--r--ishtar_common/tests.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py
index a3fa62ce7..82acb1904 100644
--- a/ishtar_common/tests.py
+++ b/ishtar_common/tests.py
@@ -650,7 +650,7 @@ class ShortMenuTest(TestCase):
self.assertEqual(response.status_code, 200)
self.assertTrue(str(basket.label) in response.content)
- def testTreatmentFile(self):
+ def test_treatment_file(self):
c = Client()
c.login(username=self.username, password=self.password)
from archaeological_finds.models import TreatmentFile, TreatmentFileType
@@ -693,7 +693,7 @@ class ShortMenuTest(TestCase):
year=2052
)
- def testTreatment(self):
+ def test_treatment(self):
c = Client()
c.login(username=self.username, password=self.password)
treat = self._create_treatment()
@@ -747,6 +747,13 @@ class ShortMenuTest(TestCase):
self.assertFalse(c.session['find'])
self.assertFalse(c.session['contextrecord'])
+ # current find is set as an integer
+ session = c.session
+ session['find'] = find.id
+ session.save()
+ response = c.get(reverse('shortcut-menu'))
+ self.assertEqual(response.status_code, 200)
+
self._create_treatment()
def test_basket_is_current_item(self):