Improve PyOpenSSL coverage to 80% which should increase total coverage by up to 0.5%.

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Duplicate
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      PyOpenSSL/OCSP modules represent ~0.8% of the total codebase (262 / 32,085 statements) and are sitting at only ~21% coverage — well below the project
      average of 44%. However, the picture is skewed: ocsp_cache.py is actually well-covered at 86%, while pyopenssl_context.py is essentially untested at
      just 3%.

      PyOpenSSL Context & OCSP module coverage can be improved by targeting critical code paths:

      • pyopenssl_context.py — ~96% uncovered
      • SSL/TLS handshake, OCSP stapling; niche but essentially untested

      Definition of done

      Improve PyOpenSSL coverage to 80% which should increase total coverage by up to 0.5%.

      Pitfalls

      The overall impact of bringing this to 100% would be less than +1 percentage point — much smaller than PYTHON-5760 or PYTHON-5761 due to the smaller module size.

            Assignee:
            Unassigned
            Reporter:
            Alex Clark
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: