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 | ||||
| 
 | ||||
| from scopes.server.app import demo_app, zope_app | ||||
| #from scopes.server.app import demo_app, zope_app | ||||
| 
 | ||||
| # server / app settings | ||||
| server_port = '8999' | ||||
| app = zope_app | ||||
| #app = zope_app | ||||
| 
 | ||||
| # storage settings | ||||
| 
 | ||||
| # PostgreSQL | ||||
| import scopes.storage.db.postgres | ||||
| #import scopes.storage.db.postgres | ||||
| dbengine = 'postgresql+psycopg' | ||||
| dbname = 'testdb' | ||||
| dbuser = 'testuser' | ||||
|  | @ -17,7 +17,7 @@ dbpassword = 'secret' | |||
| dbschema = 'testing' | ||||
| 
 | ||||
| # SQLite | ||||
| #dbengine = 'sqlite' | ||||
| #dbname = 'var/test.db' | ||||
| #dbschema = None | ||||
| dbengine = 'sqlite' | ||||
| dbname = 'var/test.db' | ||||
| dbschema = None | ||||
| 
 | ||||
|  |  | |||
|  | @ -9,7 +9,7 @@ import unittest | |||
| 
 | ||||
| import scopes.storage.common | ||||
| 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 | ||||
| 
 | ||||
| engine = getEngine(config.dbengine, config.dbname, config.dbuser, config.dbpassword)  | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue