Community: Framework mailing list archives

Re: Enhancment proposal, new domain operator "parent_of"

Holger Brunn
- 05/13/2015 07:11:04
> I've a problem with the test. I need to create/extend models to
> cover all code paths. For example, I need to create one2many,
> many2one, many2many fields other than (parent_id/child_ids). Is it
> possible to create a module just for testing?

You don't need that, you can simply add your model in the test code:

The crucial part is that you call _build_model on the model(s) you declare 

Therp - Maatwerk in open ontwikkeling

Holger Brunn - Ontwerp en implementatie