Skip to content

Commit

Permalink
💚 Fix test cleanup for self-signed certs support
Browse files Browse the repository at this point in the history
Some tests were leading to the REQUESTS_CA_BUNDLE being set without
it being set upfront by the developer, and it was never being cleared.

Running the api_client tests after that were then affected by this
envvar.
  • Loading branch information
sergei-maertens committed Sep 20, 2023
1 parent e9f7da9 commit a9068d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/openforms/tests/test_self_signed_certificates.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ def tearDownClass(cls):

if cls._original_requests_ca is not None:
os.environ["REQUESTS_CA_BUNDLE"] = cls._original_requests_ca
elif "REQUESTS_CA_BUNDLE" in os.environ:
del os.environ["REQUESTS_CA_BUNDLE"]


class SelfSignedCertificateTests(RestoreOriginalCABundleMixin, TestCase):
Expand Down

0 comments on commit a9068d0

Please sign in to comment.