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 Mar 9, 2024
1 parent 430070e commit 8ba7860
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_proxy.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import re
import subprocess

import pytest

import expected_results

HTTP_PATTERN = r".*\[http\] 127\.0\.0\.1:\d{5} <-> localhost:1080 via DIRECT"
SOCKS5_PATTERN = r".*\[socks5\] 127\.0\.0\.1:\d{5} <-> 127.0.0.1:1080 via DIRECT"

@pytest.fixture(scope="module", params=[pytest.param(0, id="http"), pytest.param(3, id="socks5")], autouse=True)

@pytest.fixture(
scope="module", params=[pytest.param(0, id="http"), pytest.param(3, id="socks5")], autouse=True
)
def proxy(kodi, request):
kodi.Settings.SetSettingValue(setting="network.usehttpproxy", value=True)
kodi.Settings.SetSettingValue(setting="network.httpproxytype", value=request.param)
Expand Down

0 comments on commit 8ba7860

Please sign in to comment.