示例#1
0
def post(url,
         blocking=False,
         headers={"Content-Type": "application/x-www-form-urlencoded"},
         timeout=None,
         data="",
         **callbacks):
    return _mockbrython()
示例#2
0
async def ajax(method,
               url,
               format="text",
               headers=None,
               data=None,
               cache=False):
    return _mockbrython()
示例#3
0
def get(url,
        blocking=False,
        headers={},
        mode="text",
        encoding="utf-8",
        timeout=None,
        cache=False,
        data="",
        **callbacks):
    return _mockbrython()
示例#4
0
async def post(url, format="text", headers=None, data=None):
    return _mockbrython()
示例#5
0
async def get(url, format="text", headers=None, data=None, cache=False):
    return _mockbrython()
示例#6
0
               format="text",
               headers=None,
               data=None,
               cache=False):
    return _mockbrython()


async def get(url, format="text", headers=None, data=None, cache=False):
    return _mockbrython()


async def post(url, format="text", headers=None, data=None):
    return _mockbrython()


_event_return = _mockbrython()
""" If you want to force """


async def event(element, name):
    return _event_return


# evt = await aio.event(element, "click") suspends execution of an asynchronous function until the user clicks on the specified element. The return value is an instance of the DOMEvent class (cf. section events)


def sleep(seconds):
    pass


import asyncio
示例#7
0
def file_upload(url,
                file,
                method="POST",
                field_name="filetosave",
                **callbacks):
    return _mockbrython()