1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00
wget/testenv/conf/wget_commands.py

16 lines
423 B
Python
Raw Normal View History

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 invokation. 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)