Skip to content

Commit

Permalink
test: ngen_cal_model_observations registration
Browse files Browse the repository at this point in the history
  • Loading branch information
aaraney committed Aug 15, 2024
1 parent dd8d700 commit 2169ed2
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions python/ngen_cal/tests/test_plugin_system.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
from __future__ import annotations

from typing import TYPE_CHECKING
from types import ModuleType
from typing import TYPE_CHECKING

from ngen.cal import hookimpl
from ngen.cal._plugin_system import setup_plugin_manager

if TYPE_CHECKING:
from datetime import datetime
from pathlib import Path
from typing import Callable

import pandas as pd
from ngen.cal.configuration import General
from pathlib import Path


def test_setup_plugin_manager():
Expand Down Expand Up @@ -76,4 +78,14 @@ def ngen_cal_model_output(self) -> None:

@hookimpl
def ngen_cal_model_post_iteration(self, path: Path, iteration: int) -> None:
"""Test model post iteration"""
"""Test model post iteration"""

@hookimpl
def ngen_cal_model_observations(
self,
id: str,
start_time: datetime,
end_time: datetime,
simulation_interval: pd.Timedelta,
) -> pd.Series:
"""Test observation plugin"""

0 comments on commit 2169ed2

Please sign in to comment.