Skip to content

Commit 45ed937

Browse files
committed
Unit tests [WIP]
1 parent 494752d commit 45ed937

4 files changed

Lines changed: 472 additions & 525 deletions

File tree

test/python_tests/postgis_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
from subprocess import PIPE, Popen
66
import mapnik
77
import pytest
8+
from .utilities import execution_path
89

910
MAPNIK_TEST_DBNAME = 'mapnik-tmp-postgis-test-db'
1011
POSTGIS_TEMPLATE_DBNAME = 'template_postgis'
11-
SHAPEFILE = './test/data/shp/world_merc.shp'
12+
SHAPEFILE = os.path.join(execution_path('.'), '../data/shp/world_merc.shp')
1213

1314
def call(cmd, silent=False):
1415
stdin, stderr = Popen(cmd, shell=True, stdout=PIPE,

0 commit comments

Comments
 (0)