Пример #1
0
    def test_wptool(self):
        from scripts.wptool import main
        from collections import namedtuple

        args = namedtuple("Args", ["H", "l", "n", "q", "s", "t", "v", "w"])
        cli = {"H": False, "l": "en", "n": False, "q": True, "s": True, "t": "", "v": False, "w": ""}
        main(args(**cli))
Пример #2
0
 def test_wptool(self):
     from scripts.wptool import main
     from collections import namedtuple
     args = namedtuple('Args', ['H', 'l', 'n', 'q', 's', 't', 'v', 'w'])
     cli = {'H': False, 'l': 'en', 'n': False, 'q': False, 's': True,
            't': '', 'v': False, 'w': ''}
     main(args(**cli))
Пример #3
0
 def test_wptool():
     '''
     Get random page via wptool
     '''
     from scripts.wptool import main
     from collections import namedtuple
     args = namedtuple('Args', ['H', 'l', 'n', 'q', 's', 't', 'v', 'w'])
     cli = {'H': False, 'l': 'en', 'n': False, 'q': False, 's': True,
            't': '', 'v': False, 'w': ''}
     main(args(**cli))