You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
386 B
13 lines
386 B
from unittest.mock import patch
|
|
|
|
from source import Config, config
|
|
|
|
|
|
def test_config_loaded() -> None:
|
|
with patch("source.core.config.get_config") as mock_get_config:
|
|
mock_config: Config = config
|
|
mock_get_config.return_value = mock_config
|
|
from source import config as loaded_config # pylint: disable=W0404,C0415
|
|
|
|
assert loaded_config is mock_config
|