mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-25 06:32:37 +01:00
Minor refactoring
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
from tests.utils import root
|
||||
|
||||
|
||||
def test_readme():
|
||||
with root.joinpath('README.md').open() as f:
|
||||
def test_readme(source_root):
|
||||
with source_root.joinpath('README.md').open() as f:
|
||||
readme = f.read()
|
||||
|
||||
bundled = root \
|
||||
.joinpath('thefuck') \
|
||||
.joinpath('rules') \
|
||||
.glob('*.py')
|
||||
bundled = source_root.joinpath('thefuck') \
|
||||
.joinpath('rules') \
|
||||
.glob('*.py')
|
||||
|
||||
for rule in bundled:
|
||||
if rule.stem != '__init__':
|
||||
|
Reference in New Issue
Block a user