mirror of
https://github.com/mirror/wget.git
synced 2025-01-15 23:01:07 +08:00
15 lines
340 B
Python
15 lines
340 B
Python
|
from conf import hook
|
||
|
|
||
|
""" Test Option: EnvironmentVariables
|
||
|
This hook is used to define environment variables used for execution of wget
|
||
|
command in test."""
|
||
|
|
||
|
|
||
|
@hook(alias='EnvironmentVariables')
|
||
|
class URLs:
|
||
|
def __init__(self, envs):
|
||
|
self.envs = envs
|
||
|
|
||
|
def __call__(self, test_obj):
|
||
|
test_obj.envs.update(**self.envs)
|