Skip to content

Commit

Permalink
fixed test_fix_spatial tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin-Sun-tts committed Feb 27, 2025
1 parent 3b55d6c commit 19661e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ARG CKAN_VERSION

USER root

RUN apt-get update && apt-get install -y postgresql-client openjdk-17-jre
RUN apt-get update && apt-get install -y postgresql-client openjdk-17-jre geos-dev

# Download Saxon jar for FGDC2ISO transform (geodatagov)
ARG saxon_ver=9.9.1-7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
import ckan.tests.factories as factories
import ckan.tests.helpers as helpers
from ckan.model.meta import Session, metadata
import pytest


@pytest.mark.usefixtures("with_plugins")
class TestSpatialField(object):

@classmethod
Expand All @@ -27,7 +28,6 @@ def setup_class(cls):
cls.user = factories.Sysadmin(name='spatial_user')

def test_numeric_spatial_transformation(self):

old_geo = '10.0,0.0,15.0,5.0'

context = {'user': self.user['name'], 'ignore_auth': True}
Expand All @@ -54,7 +54,6 @@ def test_numeric_spatial_transformation(self):
result = helpers.call_action(
'package_search',
extras={'ext_bbox': '9,-1,16,4'})

assert result['count'] == 1
assert result['results'][0]['id'] == dataset['id']

Expand Down
5 changes: 0 additions & 5 deletions ckanext/geodatagov/tests/test_waf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ def setup_class(cls):
log.info('Starting mock http server')
mock_static_file_server.serve()

# @classmethod
# def setup(cls):
# reset_db()
# cls.organization = Organization()

def setup_method(self):
# https://github.com/ckan/ckan/issues/4764
# drop extension postgis so we can reset db
Expand Down

0 comments on commit 19661e8

Please sign in to comment.