Ignore:
Timestamp:
Sep 8, 2019, 2:55:52 PM (7 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, master
Children:
5446f28
Parents:
aa68798
Message:

Fixed spatial lite testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mapservice/codegen/templates/__main__.mustache

    raa68798 rfc99a86  
    1414from {{packageName}} import encoder
    1515
    16 from {{packageName}}.server_impl.database.Model import db, User, ApiKey, db_test_setup
     16from {{packageName}}.server_impl.database.Model import db, User, ApiKey, db_setup, db_test_setup
    1717
    1818from {{packageName}}.server_impl.ValidatorWorkaround import ValidatorWorkaround
    … …  
    3131                        dbapi_conn.load_extension('/usr/local/lib64/mod_spatialite')
    3232
    33         db_test_setup()
     33        if flask.current_app.config['CREATE_TEST_DATABASE'] == True:
     34                db_test_setup()
     35        else:
     36                db_setup()
    3437
    3538@application.route("/mapservice/")
Note: See TracChangeset for help on using the changeset viewer.