[REM] disable 'actual rpc' test, PITA and should never have been implemented anyway
bzr revid: xmo@openerp.com-20130628124626-d3n5izyjqnimfz1o
This commit is contained in:
parent
fc70550ca2
commit
074a521a58
|
@ -85,18 +85,18 @@ openerp.testing.section('basic section', function (test) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
test('actual RPC', {rpc: 'rpc', asserts: 4}, function (instance) {
|
// test('actual RPC', {rpc: 'rpc', asserts: 4}, function (instance) {
|
||||||
var Model = new instance.web.Model('web_tests_demo.model');
|
// var Model = new instance.web.Model('web_tests_demo.model');
|
||||||
return Model.call('create', [{name: "Bob"}])
|
// return Model.call('create', [{name: "Bob"}])
|
||||||
.then(function (id) {
|
// .then(function (id) {
|
||||||
return Model.call('read', [[id]]);
|
// return Model.call('read', [[id]]);
|
||||||
}).then(function (records) {
|
// }).then(function (records) {
|
||||||
strictEqual(records.length, 1);
|
// strictEqual(records.length, 1);
|
||||||
var record = records[0];
|
// var record = records[0];
|
||||||
strictEqual(record.name, "Bob");
|
// strictEqual(record.name, "Bob");
|
||||||
strictEqual(record.thing, false);
|
// strictEqual(record.thing, false);
|
||||||
// default value
|
// // default value
|
||||||
strictEqual(record.other, 'bob');
|
// strictEqual(record.other, 'bob');
|
||||||
});
|
// });
|
||||||
});
|
// });
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue