<filename>tests/domain/crossover/test_crossover_factory.py

# Standard library

# 3rd party packages

# Local source
from parametrization_clean.domain.crossover.factory import CrossoverFactory
from parametrization_clean.domain.crossover.single_point import SinglePointCross
from parametrization_clean.domain.crossover.two_point import TwoPointCross
from parametrization_clean.domain.crossover.uniform import UniformCross
from parametrization_clean.domain.crossover.double_pareto import DoubleParetoCross


def test_get_single_point():
    single_point_cross = CrossoverFactory.create_executor('single_point')
    assert single_point_cross == SinglePointCross


def test_get_two_point():
    assert CrossoverFactory.create_executor('two_point') == TwoPointCross


def test_get_uniform():
    assert CrossoverFactory.create_executor('uniform') == UniformCross


def test_get_double_pareto():
    assert CrossoverFactory.create_executor('double_pareto') == DoubleParetoCross

<filename>tests/domain/crossover/test_crossover_factory.py

# Standard library

# 3rd party packages

# Local source
from parametrization_clean.domain.crossover.factory import CrossoverFactory
from parametrization_clean.domain.crossover.single_point import SinglePointCross
from parametrization_clean.domain.crossover.two_point import TwoPointCross
from parametrization_clean.domain.crossover.uniform import UniformCross
from parametrization_clean.domain.crossover.double_pareto import DoubleParetoCross


def test_get_single_point():
    single_point_cross = CrossoverFactory.create_executor('single_point')
    assert single_point_cross == SinglePointCross


def test_get_two_point():
    assert CrossoverFactory.create_executor('two_point') == TwoPointCross


def test_get_uniform():
    assert CrossoverFactory.create_executor('uniform') == UniformCross


def test_get_double_pareto():
    assert CrossoverFactory.create_executor('double_pareto') == DoubleParetoCross

# Standard library # 3rd party packages # Local source