Debian Codegraph @

testenv/conf/wget_commands.py

raw
1 from conf import hook
2
3 """ Pre-Test Hook: WgetCommands
4 This hook is used to specify the test specific switches that must be passed to
5 wget on invocation. Default switches are hard coded in the test suite itself.
6 """
7
8
9 @hook()
10 class WgetCommands:
11 def __init__(self, commands):
12 self.commands = commands
13
14 def __call__(self, test_obj):
15 test_obj.wget_options = test_obj._replace_substring(self.commands)