Open gsnider2195 opened 2 months ago
I was thinking about that. Anything that requires actual inspection of code, perhaps we could move to a test? Leave pylint only for AST checks.
The output in the summary was actually due to that version of pylint not supporting python 3.12. See the output below for the actual test failures
========================================================================== short test summary info ==========================================================================
FAILED tests/test_deprecated_status_model.py::TestDeprecatedStatusModelChecker::test_error[deprecated-status-model/error_status_model.py-expected_error0] - AssertionError: Expected messages did not match actual.
FAILED tests/test_incorrect_base_class.py::TestIncorrectBaseClassChecker::test_error[incorrect-base-class/error_filter_set.py-expected_error0] - AssertionError: Expected messages did not match actual.
FAILED tests/test_incorrect_base_class.py::TestIncorrectBaseClassChecker::test_error[incorrect-base-class/error_form.py-expected_error1] - AssertionError: Expected messages did not match actual.
FAILED tests/test_incorrect_base_class.py::TestIncorrectBaseClassChecker::test_error[incorrect-base-class/error_model.py-expected_error2] - AssertionError: Expected messages did not match actual.
FAILED tests/test_incorrect_base_class.py::TestIncorrectBaseClassChecker::test_error[incorrect-base-class/error_model_form.py-expected_error3] - AssertionError: Expected messages did not match actual.
FAILED tests/test_string_field_blank_null.py::TestStringFieldBlankNullChecker::test_error[string-field-blank-null/error_field.py-expected_error0] - AssertionError: Expected messages did not match actual.
FAILED tests/test_sub_class_name.py::TestSubClassNameChecker::test_sub_class_name[sub-class-name/error_viewset_model.py-expected_error0] - AssertionError: Expected messages did not match actual.
FAILED tests/test_sub_class_name.py::TestSubClassNameChecker::test_sub_class_name[sub-class-name/error_table.py-expected_error1] - AssertionError: Expected messages did not match actual.
FAILED tests/test_sub_class_name.py::TestSubClassNameChecker::test_sub_class_name[sub-class-name/error_filter_set.py-expected_error2] - AssertionError: Expected messages did not match actual.
FAILED tests/test_sub_class_name.py::TestSubClassNameChecker::test_sub_class_name[sub-class-name/error_serializer.py-expected_error3] - AssertionError: Expected messages did not match actual.
FAILED tests/test_sub_class_name.py::TestSubClassNameChecker::test_sub_class_name[sub-class-name/error_table_model.py-expected_error4] - AssertionError: Expected messages did not match actual.
FAILED tests/test_sub_class_name.py::TestSubClassNameChecker::test_sub_class_name[sub-class-name/error_model_form.py-expected_error5] - AssertionError: Expected messages did not match actual.
FAILED tests/test_sub_class_name.py::TestSubClassNameChecker::test_sub_class_name[sub-class-name/error_viewset.py-expected_error6] - AssertionError: Expected messages did not match actual.
FAILED tests/test_sub_class_name.py::TestSubClassNameChecker::test_sub_class_name[sub-class-name/error_filter_form.py-expected_error7] - AssertionError: Expected messages did not match actual.
FAILED tests/test_use_fields_all.py::TestUseFieldsAllChecker::test_error[use-fields-all/error_form.py-expected_error0] - AssertionError: Expected messages did not match actual.
FAILED tests/test_use_fields_all.py::TestUseFieldsAllChecker::test_error[use-fields-all/error_filter_set.py-expected_error1] - AssertionError: Expected messages did not match actual.
FAILED tests/test_use_fields_all.py::TestUseFieldsAllChecker::test_error[use-fields-all/error_serializer.py-expected_error2] - AssertionError: Expected messages did not match actual.
================================================================= 17 failed, 39 passed, 1 skipped in 0.77s ==================================================================
When running pytest locally it appears our tests are inspecting code in site-packages: