mirror of
https://gitlab.com/gnuwget/wget.git
synced 2025-08-01 16:41:40 +00:00

Files that were refactored are WgetTest.py, some conf scripts and some test case file. The purpose of the refactoring of the test cases classes is to provide a better interface for the incoming FTP test counterpart.
13 lines
267 B
Python
13 lines
267 B
Python
from conf import hook
|
|
|
|
|
|
@hook()
|
|
class LocalFiles:
|
|
def __init__(self, local_files):
|
|
self.local_files = local_files
|
|
|
|
def __call__(self, _):
|
|
for f in self.local_files:
|
|
with open(f.name, 'w') as fp:
|
|
fp.write(f.content)
|