summaryrefslogtreecommitdiff
path: root/ishtar_common/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-02-03 10:14:18 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-02-03 10:14:18 +0100
commit4d06c7e1dc542f99de5a7d8173ae9c2ab13d195f (patch)
tree1de1f49a8ccb2757b0a60baefbf6194efac49db2 /ishtar_common/tests.py
parente908e064256296c8fcc13665832590e5ff4e3d99 (diff)
downloadIshtar-4d06c7e1dc542f99de5a7d8173ae9c2ab13d195f.tar.bz2
Ishtar-4d06c7e1dc542f99de5a7d8173ae9c2ab13d195f.zip
get_item: deactivate hierarchic dependency when the parent item is a basket
Diffstat (limited to 'ishtar_common/tests.py')
-rw-r--r--ishtar_common/tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py
index c128dd93a..90fc3f0f5 100644
--- a/ishtar_common/tests.py
+++ b/ishtar_common/tests.py
@@ -689,7 +689,7 @@ class ShortMenuTest(TestCase):
self._create_treatment()
- def test_basket_hierarchy_with_treatments(self):
+ def test_basket_is_current_item(self):
c = Client()
c.login(username=self.username, password=self.password)
from archaeological_finds.models import FindBasket
@@ -702,6 +702,8 @@ class ShortMenuTest(TestCase):
session.save()
response = c.get(reverse('shortcut-menu'))
self.assertEqual(response.status_code, 200)
+ response = c.get(reverse('get-findsource'))
+ self.assertEqual(response.status_code, 200)
class ImportTest(TestCase):