1
0
Fork 0
wget/testenv/conf/wget_commands.py
Daniel Baumann 9591974d25
Adding upstream version 1.25.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 09:40:11 +02:00

15 lines
423 B
Python

from conf import hook
""" Pre-Test Hook: WgetCommands
This hook is used to specify the test specific switches that must be passed to
wget on invocation. Default switches are hard coded in the test suite itself.
"""
@hook()
class WgetCommands:
def __init__(self, commands):
self.commands = commands
def __call__(self, test_obj):
test_obj.wget_options = test_obj._replace_substring(self.commands)