Skip to content

Commit

Permalink
fix: instantiate concrete FakeModel in tests instead of TrainedModel
Browse files Browse the repository at this point in the history
  • Loading branch information
bolgheroni committed Sep 7, 2024
1 parent a17e74d commit b2093fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/fakes/fake_trained_models_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from src.spira_training.shared.ports.trained_models_repository import (
TrainedModelsRepository,
)
from tests.fakes.fake_model import FakeModel


class FakeTrainedModelsRepository(TrainedModelsRepository):
Expand All @@ -18,4 +19,4 @@ async def save_model(self, model: TrainedModel, path: Path) -> None:


def make_trained_model():
return TrainedModel()
return FakeModel()

0 comments on commit b2093fb

Please sign in to comment.