Skip to content

Commit

Permalink
remove more nose
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Aug 17, 2021
1 parent c36de65 commit e036758
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions ipykernel/tests/test_kernelspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,18 @@

import pytest

import nose.tools as nt

pjoin = os.path.join


def test_make_ipkernel_cmd():
cmd = make_ipkernel_cmd()
nt.assert_equal(cmd, [
assert cmd == [
sys.executable,
'-m',
'ipykernel_launcher',
'-f',
'{connection_file}'
])
]


def assert_kernel_dict(d):
Expand All @@ -51,8 +49,7 @@ def test_get_kernel_dict():


def assert_kernel_dict_with_profile(d):
nt.assert_equal(d['argv'], make_ipkernel_cmd(
extra_arguments=["--profile", "test"]))
assert d['argv'] make_ipkernel_cmd(extra_arguments=["--profile", "test"])
assert d['display_name'] == 'Python %i (ipykernel)' % sys.version_info[0]
assert d['language'] == 'python'

Expand Down Expand Up @@ -127,7 +124,7 @@ def test_install_profile():
with open(spec) as f:
spec = json.load(f)
assert spec["display_name"].endswith(" [profile=Test]")
nt.assert_equal(spec["argv"][-2:], ["--profile", "Test"])
assert spec["argv"][-2:] == ["--profile", "Test"]


def test_install_display_name_overrides_profile():
Expand Down

0 comments on commit e036758

Please sign in to comment.