From 5e15c4b00451eb613ea87449f13d52b21c3c2cbf Mon Sep 17 00:00:00 2001 From: Tim Paine Date: Tue, 27 Feb 2018 11:23:39 -0500 Subject: [PATCH] fix tests --- tests/test_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_utils.py b/tests/test_utils.py index ef97954..3f1d045 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -31,14 +31,14 @@ def test_ip2(self): with patch('lantern.utils.get_ipython') as m: m.return_value = MagicMock() from lantern.utils import in_ipynb - m.return_value.config = {'IPKernelApp': {'parent_appname': False}} + m.return_value.config = {'IPKernelApp': False} assert in_ipynb() == False def test_ip3(self): with patch('lantern.utils.get_ipython') as m: m.return_value = MagicMock() - m.return_value.config = {'IPKernelApp': {'parent_appname': True}} + m.return_value.config = {'IPKernelApp': True} from lantern.utils import in_ipynb assert in_ipynb() == True