We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 200bee9 commit 96de0baCopy full SHA for 96de0ba
pylint_django/tests/test_func.py
@@ -1,5 +1,6 @@
1
import csv
2
import os
3
+import pickle
4
import sys
5
6
import pylint
@@ -112,5 +113,15 @@ def test_migrations_plugin(test_file):
112
113
LintTest._runTest()
114
115
116
+@pytest.mark.parametrize("test_file", MIGRATIONS_TESTS[:1], ids=MIGRATIONS_TESTS_NAMES[:1])
117
+def test_linter_should_be_pickleable_with_pylint_djang_plugin_installed(test_file):
118
+ LintTest = PylintDjangoMigrationsTest(test_file)
119
+ LintTest.setUp()
120
+
121
+ # LintModuleTest sets reporter to instance of FunctionalTestReporter that is not picklable
122
+ LintTest._linter.reporter = None
123
+ pickle.dumps(LintTest._linter)
124
125
126
if __name__ == "__main__":
127
sys.exit(pytest.main(sys.argv))
0 commit comments