That easy? What a relief! Django has its good sides, eh?
Instead of hard-coding zone names in the test, I'd just create a slightly longer list and let factory.make_zone() come up with names...
zones = [factory.make_zone() for _ in range(5)]
The longer list will make it most likely that failures to sort will be exposed.
« Back to merge proposal
That easy? What a relief! Django has its good sides, eh?
Instead of hard-coding zone names in the test, I'd just create a slightly longer list and let factory.make_zone() come up with names...
zones = [factory. make_zone( ) for _ in range(5)]
The longer list will make it most likely that failures to sort will be exposed.