mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
10 lines
283 B
YAML
10 lines
283 B
YAML
-
|
|
Connect to local Postgres.
|
|
-
|
|
!python {model: base.external.dbsource}: |
|
|
from openerp.osv.orm import except_orm
|
|
try:
|
|
self.connection_test(cr, uid, [ref("demo_postgre")])
|
|
except except_orm as e:
|
|
assert e.value == u'Everything seems properly set up!'
|