Description
Is your feature request related to a problem? Please describe.
In a recent PR #521 we found that tests could be better divided between the test_molecule
and test_toolkit
files. So I want to start a plan here for how we can refactor the tests to be thorough and logically divided.
Here is @j-wags comment from that PR
In my mind, the toolkit tests in test_molecule should really only be for ensuring that the Molecule-level "wrapper" functions have the right behavior (accepting the right kwargs, calling a ToolkitWrapper or ToolkitRegistry, not mangling exceptions, etc), whereas checking for correctness of toolkit-dependent functionality belongs in test_toolkits. So, actually, I agree with your move here to put the minidrugbank SDF loader in test_toolkit. I just think the minidrugbank MOL2 loader and bad-molecule lists should also be in test_toolkits.
This would say to me that every method of the Molecule
class should be tested at least once in the test_molecule file covering different args and fail modes if applicable and ensuring that the correct toolkit method is called. Test_toolkits would then include more thorough testing of the toolkit methods looking for toolkit differences in performance.