from geotrek.land.tests.test_filters import LandFiltersTest

from geotrek.trekking.filters import TrekFilterSet
from geotrek.trekking.factories import TrekFactory


class TrekFilterLandTest(LandFiltersTest):

    filterclass = TrekFilterSet


    def create_pair_of_distinct_path(self):
        useless_path, seek_path = super(TrekFilterLandTest, self).create_pair_of_distinct_path()
        self.create_pair_of_distinct_topologies(TrekFactory, useless_path, seek_path)
        return useless_path, seek_path

from geotrek.land.filters import *
from geotrek.land.tests.test_filters import LandFiltersTest

from geotrek.trekking.filters import TrekFilterSet
from geotrek.trekking.factories import TrekFactory


class TrekFilterLandTest(LandFiltersTest):

    filterclass = TrekFilterSet


    def test_land_filters_are_well_setup(self):
        filterset = TrekFilterSet()
        self.assertIn('work', filterset.filters)

    def create_pair_of_distinct_path(self):
        useless_path, seek_path = super(TrekFilterLandTest, self).create_pair_of_distinct_path()
        self.create_pair_of_distinct_topologies(TrekFactory, useless_path, seek_path)
        return useless_path, seek_path

Make sure land filters are setup when testing
Make sure land filters are setup when testing

+ from geotrek.land.filters import *
  from geotrek.land.tests.test_filters import LandFiltersTest
  
  from geotrek.trekking.filters import TrekFilterSet
  from geotrek.trekking.factories import TrekFactory
  
  
  class TrekFilterLandTest(LandFiltersTest):
  
      filterclass = TrekFilterSet
  
  
+     def test_land_filters_are_well_setup(self):
+         filterset = TrekFilterSet()
+         self.assertIn('work', filterset.filters)
+ 
      def create_pair_of_distinct_path(self):
          useless_path, seek_path = super(TrekFilterLandTest, self).create_pair_of_distinct_path()
          self.create_pair_of_distinct_topologies(TrekFactory, useless_path, seek_path)
          return useless_path, seek_path
  
Make sure land filters are setup when testing
## Code Before:
from geotrek.land.tests.test_filters import LandFiltersTest

from geotrek.trekking.filters import TrekFilterSet
from geotrek.trekking.factories import TrekFactory


class TrekFilterLandTest(LandFiltersTest):

    filterclass = TrekFilterSet


    def create_pair_of_distinct_path(self):
        useless_path, seek_path = super(TrekFilterLandTest, self).create_pair_of_distinct_path()
        self.create_pair_of_distinct_topologies(TrekFactory, useless_path, seek_path)
        return useless_path, seek_path

## Instruction:
Make sure land filters are setup when testing
## Code After:
from geotrek.land.filters import *
from geotrek.land.tests.test_filters import LandFiltersTest

from geotrek.trekking.filters import TrekFilterSet
from geotrek.trekking.factories import TrekFactory


class TrekFilterLandTest(LandFiltersTest):

    filterclass = TrekFilterSet


    def test_land_filters_are_well_setup(self):
        filterset = TrekFilterSet()
        self.assertIn('work', filterset.filters)

    def create_pair_of_distinct_path(self):
        useless_path, seek_path = super(TrekFilterLandTest, self).create_pair_of_distinct_path()
        self.create_pair_of_distinct_topologies(TrekFactory, useless_path, seek_path)
        return useless_path, seek_path
