mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 03:56:01 +00:00
Fix pytest warnings (#1116)
* Add custom pytest mark. * Fix typo usefixture -> usefixtures.
This commit is contained in:
parent
22efa8f70e
commit
b4c75eebe6
@ -7,6 +7,10 @@ from thefuck.system import Path
|
||||
shells.shell = shells.Generic()
|
||||
|
||||
|
||||
def pytest_configure(config):
|
||||
config.addinivalue_line("markers", "functional: mark test as functional")
|
||||
|
||||
|
||||
def pytest_addoption(parser):
|
||||
"""Adds `--enable-functional` argument."""
|
||||
group = parser.getgroup("thefuck")
|
||||
|
@ -43,7 +43,7 @@ class TestSettingsFromFile(object):
|
||||
assert settings.rules == const.DEFAULT_RULES + ['test']
|
||||
|
||||
|
||||
@pytest.mark.usefixture('load_source')
|
||||
@pytest.mark.usefixtures('load_source')
|
||||
class TestSettingsFromEnv(object):
|
||||
def test_from_env(self, os_environ, settings):
|
||||
os_environ.update({'THEFUCK_RULES': 'bash:lisp',
|
||||
|
Loading…
Reference in New Issue
Block a user