Skip to content

Commit

Permalink
Test files in test fixtures, not files in documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitbryon committed Jul 11, 2015
1 parent f640aef commit a28fab9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 16 deletions.
1 change: 1 addition & 0 deletions tests/fixtures/sample-folder/sample-1.txt
@@ -0,0 +1 @@
1
1 change: 1 addition & 0 deletions tests/fixtures/sample-folder/sample-2.txt
@@ -0,0 +1 @@
2
1 change: 1 addition & 0 deletions tests/fixtures/sample-folder/sample-3.json
@@ -0,0 +1 @@
{"trois": 3}
20 changes: 4 additions & 16 deletions tests/fs.py
Expand Up @@ -331,22 +331,10 @@ def test_rglob(session):
"""``Path`` instances implement rglob()."""
from xal.fs.resource import Path

assert sorted(session.fs.path('docs').rglob('*.txt')) == [
Path('docs/about/alternatives.txt'),
Path('docs/about/authors.txt'),
Path('docs/about/changelog.txt'),
Path('docs/about/index.txt'),
Path('docs/about/license.txt'),
Path('docs/about/vision.txt'),
Path('docs/contributing.txt'),
Path('docs/index.txt'),
Path('docs/install.txt'),
Path('docs/presentations/2013-europython/index.txt'),
Path('docs/presentations/index.txt'),
Path('docs/presentations/xal.txt'),
Path('docs/resources/fs.txt'),
Path('docs/resources/index.txt'),
Path('docs/resources/sh.txt'),
assert sorted(session.fs.path('tests/fixtures').rglob('*.txt')) == [
Path('tests/fixtures/hello.txt'),
Path('tests/fixtures/sample-folder/sample-1.txt'),
Path('tests/fixtures/sample-folder/sample-2.txt'),
]


Expand Down

0 comments on commit a28fab9

Please sign in to comment.