testfinegrainedcache.py 580 B

123456789101112131415161718
  1. """Tests for fine-grained incremental checking using the cache.
  2. All of the real code for this lives in testfinegrained.py.
  3. """
  4. # We can't "import FineGrainedSuite from ..." because that will cause pytest
  5. # to collect the non-caching tests when running this file.
  6. from __future__ import annotations
  7. import mypy.test.testfinegrained
  8. class FineGrainedCacheSuite(mypy.test.testfinegrained.FineGrainedSuite):
  9. use_cache = True
  10. test_name_suffix = "_cached"
  11. files = mypy.test.testfinegrained.FineGrainedSuite.files + [
  12. "fine-grained-cache-incremental.test"
  13. ]