move php tests in common test dir and unify READMEs

This commit is contained in:
Sarah Hoffmann
2016-12-30 22:55:57 +01:00
parent 5252051291
commit b2be8c3ab7
10 changed files with 145 additions and 140 deletions

View File

@@ -18,10 +18,14 @@ Feature: Parenting of objects
| object | parent_place_id |
| N1 | W1 |
| N2 | W1 |
And search_name contains
| object | nameaddress_vector |
| N1 | 4, galoo, 12345 |
| N2 | 5, galoo, 99999 |
When searching for "4 galoo"
Then results contain
| ID | osm_type | osm_id | langaddress
| 0 | N | 1 | 4, galoo, 12345
When searching for "5 galoo"
Then results contain
| ID | osm_type | osm_id | langaddress
| 0 | N | 2 | 5, galoo, 99999
Scenario: Address without tags, closest street
Given the scene roads-with-pois

View File

@@ -10,7 +10,6 @@ from sys import version_info as python_version
logger = logging.getLogger(__name__)
userconfig = {
'BASEURL' : 'http://localhost/nominatim',
'BUILDDIR' : os.path.join(os.path.split(__file__)[0], "../../build"),
'REMOVE_TEMPLATE' : False,
'KEEP_TEST_DB' : False,

View File

@@ -264,7 +264,7 @@ def send_api_query(endpoint, params, fmt, context):
for h in context.table.headings:
params[h] = context.table[0][h]
env = BASE_SERVER_ENV
env = dict(BASE_SERVER_ENV)
env['QUERY_STRING'] = urlencode(params)
env['SCRIPT_NAME'] = '/%s.php' % endpoint