If there's an if statement in your test it just means you are meant to write another test
No if statements in tests
No if statements in tests
Comments
By the way, I'm new to this exciting field.
Tests can be repetitive, "don't repeat yourself" doesn't really apply here, datasets are your friend when it comes to testing items that are logically similar with different inputs/outputs
Btw welcome to the field!