Don't duplicate project root in tests

This commit is contained in:
nvbn
2015-08-26 12:12:52 +03:00
parent b21c9ebb43
commit 354ae119c6
3 changed files with 10 additions and 7 deletions
+3 -4
View File
@@ -1,12 +1,11 @@
from pathlib import Path
from tests.utils import root
def test_readme():
project_root = Path(__file__).parent.parent
with project_root.joinpath('README.md').open() as f:
with root.joinpath('README.md').open() as f:
readme = f.read()
bundled = project_root \
bundled = root \
.joinpath('thefuck') \
.joinpath('rules') \
.glob('*.py')