adapt plugin printing
* print each distribution only once(xdist now has 3 entrypoints) * include the distribution version
This commit is contained in:
parent
37ed391cc2
commit
2c42f15e00
|
@ -300,10 +300,15 @@ class TerminalReporter:
|
||||||
if plugininfo:
|
if plugininfo:
|
||||||
l = []
|
l = []
|
||||||
for plugin, dist in plugininfo:
|
for plugin, dist in plugininfo:
|
||||||
name = dist.project_name
|
# gets us name and version!
|
||||||
|
name = str(dist)
|
||||||
|
# questionable convenience, but it keeps things short
|
||||||
if name.startswith("pytest-"):
|
if name.startswith("pytest-"):
|
||||||
name = name[7:]
|
name = name[7:]
|
||||||
l.append(name)
|
# we decided to print python package names
|
||||||
|
# they can have more than one plugin
|
||||||
|
if name not in l:
|
||||||
|
l.append(name)
|
||||||
lines.append("plugins: %s" % ", ".join(l))
|
lines.append("plugins: %s" % ", ".join(l))
|
||||||
return lines
|
return lines
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue