-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64af6c2
commit d4a7ad4
Showing
2 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from evdspy.EVDSlocal.console.proxy_for_menu import get_proxies_env_helper | ||
|
||
|
||
def test_get_proxies_env_helper(capsys): | ||
x1 = (["example:80", None, "example:80", None], {'http': 'example:80'}) | ||
x2 = (["example:80", "example:80", "example:80", None], {'http': 'example:80', 'https': 'example:80'}) | ||
x3 = (["example:80", "example:89", "example:90", "example:91"], {'http': 'example:80', 'https': 'example:89'}) | ||
x4 = ([None, None, "example:90", "example:91"], {'http': 'example:90', 'https': 'example:91'}) | ||
liste = [x1, x2, x3, x4] | ||
with capsys.disabled(): | ||
for x, expected in liste: | ||
res = get_proxies_env_helper(*x) | ||
print(res) | ||
assert res == expected |