Skip to content

Commit 7e86d27

Browse files
committed
Add package scope.
1 parent ec883ee commit 7e86d27

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

pytest_dependency.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class DependencyManager(object):
4949

5050
ScopeCls = {
5151
'session': pytest.Session,
52+
'package': pytest.Package,
5253
'module': pytest.Module,
5354
'class': pytest.Class,
5455
}

tests/test_03_scope.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ def test_h():
114114
test_scope_session_02.py::test_h PASSED
115115
""")
116116

117-
@pytest.mark.xfail(reason="package scope not yet implemented")
118117
def test_scope_package(ctestdir):
119118
"""Two packages, some cross module dependencies within the package and
120119
across package boundaries.

0 commit comments

Comments
 (0)