re-run black
This commit is contained in:
@@ -494,7 +494,7 @@ class TestSession(object):
|
||||
p = testdir.makepyfile("def test_func(): pass")
|
||||
id = "::".join([p.basename, "test_func"])
|
||||
items, hookrec = testdir.inline_genitems(id)
|
||||
item, = items
|
||||
(item,) = items
|
||||
assert item.name == "test_func"
|
||||
newid = item.nodeid
|
||||
assert newid == id
|
||||
@@ -613,9 +613,9 @@ class TestSession(object):
|
||||
testdir.makepyfile("def test_func(): pass")
|
||||
items, hookrec = testdir.inline_genitems()
|
||||
assert len(items) == 1
|
||||
item, = items
|
||||
(item,) = items
|
||||
items2, hookrec = testdir.inline_genitems(item.nodeid)
|
||||
item2, = items2
|
||||
(item2,) = items2
|
||||
assert item2.name == item.name
|
||||
assert item2.fspath == item.fspath
|
||||
|
||||
@@ -630,7 +630,7 @@ class TestSession(object):
|
||||
arg = p.basename + "::TestClass::test_method"
|
||||
items, hookrec = testdir.inline_genitems(arg)
|
||||
assert len(items) == 1
|
||||
item, = items
|
||||
(item,) = items
|
||||
assert item.nodeid.endswith("TestClass::test_method")
|
||||
# ensure we are reporting the collection of the single test item (#2464)
|
||||
assert [x.name for x in self.get_reported_items(hookrec)] == ["test_method"]
|
||||
|
||||
Reference in New Issue
Block a user