brando90 / MathNet-large-scale-Mathematics-Dataset-for-Machine-Learning

1 stars 0 forks source link

Make unit tests for users cleaner (not uses classes for each one and avoid having to register them) #86

Open brando90 opened 7 years ago

brando90 commented 7 years ago

is it possible to not have to add tests individually like this but instead just have one single class with the test rather than having to make multiple classes for each test?

brando90 commented 7 years ago

I want avoid:

    test_suite.addTest( Test_author_and_description_and_keywords(qa_constructor,arg,kwargs) )
    test_suite.addTest( Test_basic_user_test(qa_constructor,arg,kwargs) )
    test_suite.addTest( Test_basic_uses_generators(qa_constructor,arg,kwargs) )
    test_suite.addTest( Test_seed_all_provides_variation(qa_constructor,arg,kwargs) )
    test_suite.addTest( Test_all_funcs_with_seed_are_deterministic(qa_constructor,arg,kwargs) )
    test_suite.addTest( Test_user_does_not_set_latex_flag_in_Q_or_A(qa_constructor,arg,kwargs) )
    runner.run(test_suite)