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 authored and hellkite500 committed Aug 15, 2024
1 parent d4847b2 commit 22b2a71
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions python/ngen_cal/tests/test_plugin_system.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
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 hypy.nexus import Nexus

from ngen.cal.configuration import General
from pathlib import Path


def test_setup_plugin_manager():
Expand Down Expand Up @@ -76,4 +80,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,
nexus: Nexus,
start_time: datetime,
end_time: datetime,
simulation_interval: pd.Timedelta,
) -> pd.Series:
"""Test observation plugin"""

0 comments on commit 22b2a71

Please sign in to comment.