UT: Remove disused load_monkey_config() fixture

This commit is contained in:
Mike Salvatore 2022-07-13 08:29:30 -04:00
parent 3f428b1555
commit dbb8a5535a
1 changed files with 0 additions and 11 deletions

View File

@ -1,7 +1,5 @@
import json
import sys import sys
from pathlib import Path from pathlib import Path
from typing import Callable, Dict
import pytest import pytest
from _pytest.monkeypatch import MonkeyPatch from _pytest.monkeypatch import MonkeyPatch
@ -49,15 +47,6 @@ def monkey_configs_dir(data_for_tests_dir) -> Path:
return data_for_tests_dir / "monkey_configs" return data_for_tests_dir / "monkey_configs"
@pytest.fixture
def load_monkey_config(data_for_tests_dir) -> Callable[[str], Dict]:
def inner(filename: str) -> Dict:
config_path = data_for_tests_dir / "monkey_configs" / filename
return json.loads(open(config_path, "r").read())
return inner
@pytest.fixture @pytest.fixture
def default_agent_configuration() -> AgentConfiguration: def default_agent_configuration() -> AgentConfiguration:
return DEFAULT_AGENT_CONFIGURATION return DEFAULT_AGENT_CONFIGURATION