Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Draft 2: Use a minimal fixture for customer-specific data only #295
Here's a new approach to the 1 fixture to rule them all. This idea popped out after talking with @DH.
In our fixture we don't set the WHOLE OBJECT (and all the objects), but only the things that the customer wants to have changed and we use the existing fixtures and builders for everything else.
It is my understanding that the customer mostly wants familiar names (product, bpartner, pricelist, prod.category, etc.) and quantities, and the rest of the data should "mostly" be all right.
In this way the customer fixture is much smaller, without duplicated data (because I expect most stuff to be 80% the same between tests), and we'll also be able to use our builders and everything else just like we are doing now.