Skip to content

Commit

Permalink
import missing types
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w-feldmann committed Oct 28, 2024
1 parent 8cad166 commit 8c46fde
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_utils/test_comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from typing import Callable
from unittest import TestCase

from molpipeline import Pipeline
from molpipeline.utils.comparison import check_pipelines_equivalent
from tests.utils.default_models import (
get_morgan_physchem_rf_pipeline,
Expand All @@ -16,11 +17,11 @@ class TestComparison(TestCase):
def test_are_equal(self) -> None:
"""Test if two equivalent pipelines are detected as such."""
# Test standardization pipelines
pipline_method_list = [
pipline_method_list: list[Callable[[int], Pipeline]] = [
get_standardization_pipeline,
get_morgan_physchem_rf_pipeline,
]
for pipeline_method in pipline_method_list: # type: Callable[[int], Pipeline]
for pipeline_method in pipline_method_list:
pipeline_a = pipeline_method()
pipeline_b = pipeline_method()
self.assertTrue(check_pipelines_equivalent(pipeline_a, pipeline_b))
Expand Down

0 comments on commit 8c46fde

Please sign in to comment.