mirror of
https://github.com/mirror/wget.git
synced 2024-12-31 07:20:16 +08:00
f8e9a64ec7
Add (lots) of documentation for various parts of the test suite in the form of Python docstrings. Also, clean up some of the redundant code and fix indentation issues.
16 lines
423 B
Python
16 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 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)
|