from unittest import skipIf

from django.conf import settings

from geotrek.land.tests.test_filters import LandFiltersTest

from geotrek.core.filters import PathFilterSet


@skipIf(not settings.TREKKING_TOPOLOGY_ENABLED, 'Test with dynamic segmentation only')
class PathFilterLandTest(LandFiltersTest):

    filterclass = PathFilterSet

from unittest import skipIf

from django.conf import settings
from django.test import TestCase

from geotrek.land.tests.test_filters import LandFiltersTest

from geotrek.core.filters import PathFilterSet, TopologyFilter
from geotrek.core.models import Topology


@skipIf(not settings.TREKKING_TOPOLOGY_ENABLED, 'Test with dynamic segmentation only')
class PathFilterLandTest(LandFiltersTest):

    filterclass = PathFilterSet


class TestFilter(TopologyFilter):
    model = Topology


class TopologyFilterTest(TestCase):
    def test_value_to_edges(self):
        topology = TestFilter()

        with self.assertRaises(NotImplementedError):
            topology.value_to_edges('Value')

Add test filter notimplementedError