Skip to content

Commit

Permalink
Add a test description.
Browse files Browse the repository at this point in the history
  • Loading branch information
turturica authored and turturica committed Aug 10, 2018
1 parent 266f05c commit 50db718
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testing/test_collection.py
Expand Up @@ -638,6 +638,10 @@ def test_global_file(self, testdir, tmpdir):
assert col.config is config

def test_pkgfile(self, testdir):
"""Verify nesting when a module is within a package.
The parent chain should match: Module<x.py> -> Package<subdir> -> Session.
Session's parent should always be None.
"""
tmpdir = testdir.tmpdir
subdir = tmpdir.join("subdir")
x = subdir.ensure("x.py")
Expand Down

0 comments on commit 50db718

Please sign in to comment.