There is the create_points_type() method on the main testcase, but it only creates a default points type with hard-coded settings. It would be better to be able to create multiple points types on-the-fly without having to worry about their settings. Having a factory do this means we also don't have to worry about changes in how points types are created, when the code involved is really irrelevant to the code that we are testing.
There is the
create_points_type()
method on the main testcase, but it only creates a default points type with hard-coded settings. It would be better to be able to create multiple points types on-the-fly without having to worry about their settings. Having a factory do this means we also don't have to worry about changes in how points types are created, when the code involved is really irrelevant to the code that we are testing.