From 9948bd6f52e720bb1cf3c601da89d09951b20dd1 Mon Sep 17 00:00:00 2001 From: BryantHe Date: Sun, 16 Jul 2023 16:41:38 +0800 Subject: [PATCH] update readme --- README.md | 47 +---------------------------------------------- 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/README.md b/README.md index f362ca7..b2fe754 100644 --- a/README.md +++ b/README.md @@ -11,50 +11,5 @@ python3 -m pip install -r requirements.txt ``` -## WSGI Tutorial +## ASGI Tutorial -实现了 WSGI Tutorial 的 image-sharing app - -提交图片 - -```shell -http POST localhost:8000/images Content-Type:image/png < /Users/apple/IMG_0976_little.png -``` - -查询图片 - -```shell -http GET localhost:8000/images/ -``` - - -## 运行测试 - - -### 运行单元测试 - -#### 运行所有测试 - -```shell -coverage run -m pytest tests -``` - -#### 运行单个测试 - -```shell -pytest tests -k -``` - -### 运行功能测试 - -#### 启动 app - -```shell -LOOK_STORAGE_PATH=./images gunicorn --reload 'app.app:get_app()' -``` - -#### 运行测试 - -```shell -pytest tests -k test_posted_image_gets_saved -```