3 ms·
>The purpose of a test is to assert "This will never change". IMO the purpose of test is to assert "this is behavior that will likely happen in production", no
by pytester 8y ago
>The purpose of a test is to assert "This will never change".
IMO the purpose of test is to assert "this is behavior that will likely happen in production", not "this will never change". I try to use data that's as real as possible within resource constraints (e.g. slashing out boring data to get dump times down from 1 hr to 5 mins).
>If you copy the schema and import it into sqlite with just the data you need
omg no. I've had undiscovered bugs caused by using a different version of postgres locally in test to the one in prod, never mind using an entirely different database.