Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed Feb 27, 2018
1 parent 4f717a4 commit 5e15c4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5e15c4b

Please sign in to comment.