From 0a9ee9d24638f3a8edd0d84e550009b1d2af5ea3 Mon Sep 17 00:00:00 2001 From: Diian-r Date: Tue, 20 Jun 2023 14:44:14 -0400 Subject: [PATCH] added custom ReplayStrategy to tests --- .../{test_summary_mixin.py => test_summary.py} | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) rename tests/openadapt/{test_summary_mixin.py => test_summary.py} (63%) diff --git a/tests/openadapt/test_summary_mixin.py b/tests/openadapt/test_summary.py similarity index 63% rename from tests/openadapt/test_summary_mixin.py rename to tests/openadapt/test_summary.py index 3b2ee07aa..c68ba19dd 100644 --- a/tests/openadapt/test_summary_mixin.py +++ b/tests/openadapt/test_summary.py @@ -1,13 +1,22 @@ """ -Tests the get_summary function in summary_mixin.py +Tests the summarization function in summary.py """ +import pytest from fuzzywuzzy import fuzz -from openadapt.strategies.demo import DemoReplayStrategy +from openadapt.strategies.mixins.summary import SummaryReplayStrategyMixin from openadapt.models import Recording + RECORDING = Recording() -REPLAY = DemoReplayStrategy(RECORDING) + +class TestSummaryReplayStrategy(SummaryReplayStrategyMixin): + def __init__(self, recording: Recording): + super().__init__(recording) + def get_next_action_event(self): + pass + +REPLAY = TestSummaryReplayStrategy(RECORDING) def test_summary_empty(): empty_text = ""