首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 栈桥:doctest休息(的服务)

栈桥:doctest休息(的服务)

  • 资源大小:34.82 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: doctest 服务 休息 栈桥

资 源 简 介

Trestle is a nose plugin that enables you to write testable documentation for web apps (or shell commands, but more on that later). To use trestle, write a reStructured Text document using a set of special directives to indicate the fixtures to be used for testing (including the http or mock http client), each request to be sent via the client, and the expected response from the application under test. A simple trestle test document might look like this:: ``` Frog: A web service for doing things with frogs ----------------------------------------------- .. fixtures :: frog_fixtures Frog is a web service for doing things with frogs. You can list the available frogs. .. request :: List available frogs GET /frogs .. The response is in a plain-text format. .. response :: bullfrog poison dart treefrog ...<

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP