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:
@@ -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')
|
||||
|
Reference in New Issue
Block a user