From dbb8a5535aafc49de1d2da5509c61a4fa05d30e3 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 13 Jul 2022 08:29:30 -0400 Subject: [PATCH] UT: Remove disused load_monkey_config() fixture --- monkey/tests/unit_tests/conftest.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/monkey/tests/unit_tests/conftest.py b/monkey/tests/unit_tests/conftest.py index 51528ba00..7c987fe95 100644 --- a/monkey/tests/unit_tests/conftest.py +++ b/monkey/tests/unit_tests/conftest.py @@ -1,7 +1,5 @@ -import json import sys from pathlib import Path -from typing import Callable, Dict import pytest 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" -@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 def default_agent_configuration() -> AgentConfiguration: return DEFAULT_AGENT_CONFIGURATION