Skip to content

Commit

Permalink
feat: removed skipping boundary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-hd committed Oct 23, 2024
1 parent 0ce3525 commit af1627e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
3 changes: 1 addition & 2 deletions tests/functional/test_cleared_boundaries_are_not_saved_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@
from projects.models import Project


@pytest.mark.skip(reason="disable until NLD update")
@pytest.mark.usefixtures("py")
class TestBoundaryClearedFeatures(UiFeatureHelper):
def setUp(self):
self.login()
self.original_source_of_boundary = 'native-land.ca'
self.original_name_of_boundary = 'placeholder-boundary-name'
self.original_boundary_coordinates = [
[0, 0], [0, 1], [0, 2]
[0, 0], [0, 1], [0, 2]
]
self.community_project = None
self.institution_project = None
Expand Down
1 change: 0 additions & 1 deletion tests/functional/test_preview_boundary_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from institutions.models import Institution


@pytest.mark.skip(reason="disable until NLD update")
@pytest.mark.usefixtures("py")
class TestProjectBoundaryPreviewFeatures(UiFeatureHelper):
def setUp(self):
Expand Down
10 changes: 7 additions & 3 deletions tests/functional/test_public_boundary_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@
from factories.communities_factories import CommunityFactory
from factories.communities_factories import CommunityBoundaryFactory

from helpers.schema import GEOJSON_MULTI_POLYGON_TYPE


class TestFeatures(TransactionTestCase):
def setUp(self):
self.client = Client()
self.community_with_boundary = CommunityFactory(
boundary=CommunityBoundaryFactory(
coordinates=[
[0, 0], [0, 1], [0, 2]
]
geometry={
'type': GEOJSON_MULTI_POLYGON_TYPE, 'coordinates': [
[[0, 0], [0, 1], [0, 2]]
],
}
)
)

Expand Down
10 changes: 7 additions & 3 deletions tests/functional/test_public_community_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,20 @@
from factories.communities_factories import CommunityFactory
from factories.communities_factories import CommunityBoundaryFactory

from helpers.schema import GEOJSON_MULTI_POLYGON_TYPE


@pytest.mark.usefixtures("py")
class TestFeatures(StaticLiveServerTestCase):
def setUp(self):
self.client = Client()
self.community_with_boundary = CommunityFactory(
boundary=CommunityBoundaryFactory(
coordinates=[
[0, 0], [0, 1], [0, 2]
]
geometry={
'type': GEOJSON_MULTI_POLYGON_TYPE, 'coordinates': [
[[0, 0], [0, 1], [0, 2]]
],
}
),
)
self.community_without_boundary = CommunityFactory()
Expand Down

0 comments on commit af1627e

Please sign in to comment.