[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:
Xavier Morel 2013-06-28 14:46:26 +02:00
parent fc70550ca2
commit 074a521a58
1 changed files with 14 additions and 14 deletions

View File

@ -85,18 +85,18 @@ openerp.testing.section('basic section', function (test) {
});
});
test('actual RPC', {rpc: 'rpc', asserts: 4}, function (instance) {
var Model = new instance.web.Model('web_tests_demo.model');
return Model.call('create', [{name: "Bob"}])
.then(function (id) {
return Model.call('read', [[id]]);
}).then(function (records) {
strictEqual(records.length, 1);
var record = records[0];
strictEqual(record.name, "Bob");
strictEqual(record.thing, false);
// default value
strictEqual(record.other, 'bob');
});
});
// test('actual RPC', {rpc: 'rpc', asserts: 4}, function (instance) {
// var Model = new instance.web.Model('web_tests_demo.model');
// return Model.call('create', [{name: "Bob"}])
// .then(function (id) {
// return Model.call('read', [[id]]);
// }).then(function (records) {
// strictEqual(records.length, 1);
// var record = records[0];
// strictEqual(record.name, "Bob");
// strictEqual(record.thing, false);
// // default value
// strictEqual(record.other, 'bob');
// });
// });
});