HTTPretty

码农软件 · 软件分类 · 网络工具包 · 2019-02-28 08:43:01

软件介绍

HTTPretty 是一个 Python 的 HTTP 客户端模拟工具。

示例代码:

import requests
from sure import expect
from httpretty import HTTPretty
from httpretty import httprettified


@httprettified
def test_yipit_api_returning_deals():
    HTTPretty.register_uri(HTTPretty.GET, "http://api.yipit.com/v1/deals/",
                           body='[{"title": "Test Deal"}]',
                           content_type="application/json")

    response = requests.get('http://api.yipit.com/v1/deals/')

    expect(response.json()).to.equal([{"title": "Test Deal"}])

本文地址:https://codercto.com/soft/d/299.html

Verilog数字系统设计教程

Verilog数字系统设计教程

夏宇闻 / 北京航空航天大学出版社 / 2003-7-1 / 38.0

《Verilog数字系统设计教程》可作为电子工程类、自动控制类、计算机类的大学本科高年级及研究生教学用书,亦可供其他工程人员自学与参考。一起来看看 《Verilog数字系统设计教程》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具