Added tests in test-remote.py
This commit is contained in:
parent
2ff9186798
commit
6a3e794189
|
@ -1,7 +1,19 @@
|
|||
import remote
|
||||
from remote import *
|
||||
|
||||
remote.autolog()
|
||||
print( remote.search('res.users', [('id','=',7)]) )
|
||||
print( remote.fields('product.uom', []) )
|
||||
print( remote.lookup('product.uom', [('id','=',24)], recurse='product.uom,product.uom.categ') )
|
||||
print( remote.save('product.uom', [('id','=',24)], recurse='product.uom,product.uom.categ') )
|
||||
autolog()
|
||||
print( search('res.users', [('id','=',7)]) )
|
||||
print( fields('product.uom', []) )
|
||||
print( lookup('product.uom', [('id','=',24)], recurse='product.uom,product.uom.categ') )
|
||||
print( save('product.uom', [('id','=',24)], recurse='product.uom,product.uom.categ') )
|
||||
|
||||
|
||||
deps = {
|
||||
'ir.model': ['ir.model.fields']
|
||||
'product.uom': ['product.uom','product.uom.categ']
|
||||
}
|
||||
|
||||
backups = {
|
||||
'ir.model': []
|
||||
'res.users': search('res.users', [('name','in',['poka','Thomas Di Grégorio'])]),
|
||||
'product.uom': [20,21,22,23,24],
|
||||
}
|
Loading…
Reference in New Issue