Skip to content

Commit

Permalink
temp cert fixture cleans own tempfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanluciano committed Jun 20, 2024
1 parent c55a351 commit c6a2ed5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ def create_temp_self_signed_cert(self, tmp_path):
key_file.close()

# Return file names
return (cert_file_name, key_file_name)
yield (cert_file_name, key_file_name)
os.remove(cert_file_name)
os.remove(key_file_name)

@pytest.fixture
def config_context(self, create_temp_self_signed_cert):
Expand Down

0 comments on commit c6a2ed5

Please sign in to comment.