1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-09-24 22:22:34 +01:00

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

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')