Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 14, 2021
1 parent 46d9c0a commit 923cb41
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions tests/test_proxy_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@pytest.fixture
def trustme_certs(tmp_path):
ca = trustme.CA()
ca.issue_cert(u"localhost")
ca.issue_cert("localhost")
ca_cert_path = tmp_path / "ca.pem"
ca.cert_pem.write_to_path(ca_cert_path)
ca_key_path = tmp_path / "server.key"
Expand All @@ -27,12 +27,17 @@ def trustme_certs(tmp_path):
def secure_proxy_url(trustme_certs):
port = proxy.common.utils.get_available_port()
input_args = [
'--num-workers', '1',
'--threadless',
'--hostname', '0.0.0.0',
'--port', str(port),
'--cert-file', trustme_certs[0],
'--key-file', trustme_certs[1],
"--num-workers",
"1",
"--threadless",
"--hostname",
"0.0.0.0",
"--port",
str(port),
"--cert-file",
trustme_certs[0],
"--key-file",
trustme_certs[1],
]
proxy_url = "http://0.0.0.0:" + str(port)
with proxy.Proxy(input_args=input_args) as proxy_instance:
Expand Down

0 comments on commit 923cb41

Please sign in to comment.