Closed Zabamund closed 3 years ago
Awesome! Please can you add a couple of tests for this?
Yep in the process of writing tests right now :-)
Okay, please add the commit to this PR, I think that should be possible
I'm not sure how to fix this as before my commit, coverage was at 75.254% and it's now higher at 75.423%. The two tests I added cover the code I added, namely checking for None and for tuples in the initialisation of a Component. Any suggestions?
thank you for merging despite that failed coverage Matt :+1:
In the init method, all
TypeError
instances were ignored as they were assumed to be catching instances ofNone
. They were also catching instances oftuples
though and here I suggest being explicit about catching the instances ofNone
and adding other valid objects in the same way as forValueError
instances.