mirror of
https://github.com/krkn-chaos/krkn.git
synced 2026-04-15 06:57:28 +00:00
17 lines
475 B
Python
17 lines
475 B
Python
from typing import List, Dict
|
|
|
|
from kraken.scenarios.base import Scenario
|
|
from kraken.scenarios.runner import ScenarioRunnerConfig
|
|
|
|
|
|
class Loader:
|
|
def __init__(self, scenarios: List[Scenario]):
|
|
self.scenarios = scenarios
|
|
|
|
def load(self, data: Dict) -> ScenarioRunnerConfig:
|
|
"""
|
|
This function loads data from a dictionary and produces a scenario runner config. It uses the scenarios provided
|
|
when instantiating the loader.
|
|
"""
|
|
|