summaryrefslogtreecommitdiffstats
path: root/testenv/conf/wget_commands.py
blob: fb379bed2478d15b43e044c6be293006b3d48b92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)