make tests run (with sqlite) on Android phone
This commit is contained in:
parent
4066720486
commit
a4158e96d8
2 changed files with 7 additions and 7 deletions
|
@ -1,15 +1,15 @@
|
||||||
# py-scopes/tests/config.py
|
# py-scopes/tests/config.py
|
||||||
|
|
||||||
from scopes.server.app import demo_app, zope_app
|
#from scopes.server.app import demo_app, zope_app
|
||||||
|
|
||||||
# server / app settings
|
# server / app settings
|
||||||
server_port = '8999'
|
server_port = '8999'
|
||||||
app = zope_app
|
#app = zope_app
|
||||||
|
|
||||||
# storage settings
|
# storage settings
|
||||||
|
|
||||||
# PostgreSQL
|
# PostgreSQL
|
||||||
import scopes.storage.db.postgres
|
#import scopes.storage.db.postgres
|
||||||
dbengine = 'postgresql+psycopg'
|
dbengine = 'postgresql+psycopg'
|
||||||
dbname = 'testdb'
|
dbname = 'testdb'
|
||||||
dbuser = 'testuser'
|
dbuser = 'testuser'
|
||||||
|
@ -17,7 +17,7 @@ dbpassword = 'secret'
|
||||||
dbschema = 'testing'
|
dbschema = 'testing'
|
||||||
|
|
||||||
# SQLite
|
# SQLite
|
||||||
#dbengine = 'sqlite'
|
dbengine = 'sqlite'
|
||||||
#dbname = 'var/test.db'
|
dbname = 'var/test.db'
|
||||||
#dbschema = None
|
dbschema = None
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import unittest
|
||||||
|
|
||||||
import scopes.storage.common
|
import scopes.storage.common
|
||||||
from scopes.storage.common import commit, Storage, getEngine, sessionFactory
|
from scopes.storage.common import commit, Storage, getEngine, sessionFactory
|
||||||
from scopes.storage import proxy
|
#from scopes.storage import proxy
|
||||||
from scopes.storage import folder, tracking
|
from scopes.storage import folder, tracking
|
||||||
|
|
||||||
engine = getEngine(config.dbengine, config.dbname, config.dbuser, config.dbpassword)
|
engine = getEngine(config.dbengine, config.dbname, config.dbuser, config.dbpassword)
|
||||||
|
|
Loading…
Add table
Reference in a new issue