test_subvoat.py 文件源码

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

项目:voat 作者: Cightline 项目源码 文件源码
def test_new_subvoat_creation():
    api_token = get_api_token()


    result = requests.post('%s/create_subvoat' % (base_address), {'username':'test_username', 
                                                                  'api_token':api_token,
                                                                  'subvoat_name':'test_%s' % (''.join(random.choices(string.ascii_letters, k=10)))})

    print(result.json())


# Try to create the same subvoat that already exists
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号