move pytest/collect.py to pytest/plugin/session.py - approaching

total py.test pluginizations ...

--HG--
branch : trunk
This commit is contained in:
holger krekel
2010-10-12 12:19:53 +02:00
parent 9b4cca2bf4
commit 6efc6dcb62
6 changed files with 321 additions and 312 deletions

View File

@@ -294,6 +294,15 @@ class TestPytestPluginInteractions:
config.parse([])
assert not config.option.test123
def test_namespace_early_from_import(self, testdir):
p = testdir.makepyfile("""
from py.test.collect import Item
from pytest.collect import Item as Item2
assert Item is Item2
""")
result = testdir.runpython(p)
assert result.ret == 0
def test_do_ext_namespace(self, testdir):
testdir.makeconftest("""
def pytest_namespace():