mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Add docstring that explains the fixture's purpose
This commit is contained in:
parent
15b9e8d7e8
commit
96cc40dcff
@ -12,6 +12,13 @@ ORIGINAL_CONFIG = copy.deepcopy(bigchaindb._config)
|
|||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def ignore_local_config_file(monkeypatch):
|
def ignore_local_config_file(monkeypatch):
|
||||||
|
"""
|
||||||
|
This fixture's purpose is to override the one under
|
||||||
|
:module:`tests/conftest.py` so that the original behaviour of
|
||||||
|
:func:`bigchaindb.config_utils.file_config` is restored, so that it can be
|
||||||
|
tested.
|
||||||
|
|
||||||
|
"""
|
||||||
from bigchaindb.config_utils import file_config
|
from bigchaindb.config_utils import file_config
|
||||||
monkeypatch.setattr('bigchaindb.config_utils.file_config', file_config)
|
monkeypatch.setattr('bigchaindb.config_utils.file_config', file_config)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user