Skip to content

Commit

Permalink
Remove outdated test handled in thegolem (#1101)
Browse files Browse the repository at this point in the history
  • Loading branch information
IIaKyJIuH authored May 22, 2023
1 parent f02b626 commit 2c8dac8
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions test/unit/pipelines/test_pipeline_comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from copy import deepcopy

import pytest
from golem.core.optimisers.genetic.gp_operators import equivalent_subtree

from fedot.core.pipelines.node import PipelineNode
from fedot.core.pipelines.pipeline import Pipeline
Expand Down Expand Up @@ -115,21 +114,3 @@ def test_non_equality_cases(pipeline_fixture, request):
for pair in list_pipelines_pairs:
assert not pair[0] == pair[1]
assert not pair[1] == pair[0]


def test_pipelines_equivalent_subtree():
c_first = pipeline_first()
c_second = pipeline_second()
c_third = pipeline_third()

similar_nodes_first_and_second = equivalent_subtree(c_first, c_second)
assert len(similar_nodes_first_and_second) == 6

similar_nodes_first_and_third = equivalent_subtree(c_first, c_third)
assert not similar_nodes_first_and_third

similar_nodes_second_and_third = equivalent_subtree(c_second, c_third)
assert not similar_nodes_second_and_third

similar_nodes_third = equivalent_subtree(c_third, c_third)
assert len(similar_nodes_third) == 4

0 comments on commit 2c8dac8

Please sign in to comment.