test_mockers.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:goose-search 作者: rezemika 项目源码 文件源码
def result_properties():
    properties = {}
    properties["access"] = "yes"
    if bool(random.getrandbits(1)):
        properties["name"] = fake.company()
    if bool(random.getrandbits(1)):
        properties["phone"] = fake.phone_number()
    if bool(random.getrandbits(1)):
        properties["fee"] = "yes"
    elif bool(random.getrandbits(1)):
        properties["fee"] = "no"
    if bool(random.getrandbits(1)):
        properties["opening_hours"] = "Mo-Su 09:00-19:00"
    elif bool(random.getrandbits(1)):
        properties["opening_hours"] = "Mo-Th 12:30-16:30"
    return properties
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号