From 4d06c7e1dc542f99de5a7d8173ae9c2ab13d195f Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 3 Feb 2017 10:14:18 +0100 Subject: get_item: deactivate hierarchic dependency when the parent item is a basket --- ishtar_common/tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ishtar_common/tests.py') 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): -- cgit v1.2.3