From 0baa7a5c773981d00765236525b6d4542d413d99 Mon Sep 17 00:00:00 2001 From: hyperdefined Date: Fri, 27 Jun 2025 20:18:09 -0400 Subject: [PATCH] api/tests: create duitang tests --- api/src/util/tests/duitang.json | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 api/src/util/tests/duitang.json diff --git a/api/src/util/tests/duitang.json b/api/src/util/tests/duitang.json new file mode 100644 index 00000000..26767b78 --- /dev/null +++ b/api/src/util/tests/duitang.json @@ -0,0 +1,37 @@ +[ + { + "name": "regular album", + "url": "https://www.duitang.com/atlas/?id=135382417", + "params": {}, + "expected": { + "code": 200, + "status": "picker" + } + }, + { + "name": "single image", + "url": "https://www.duitang.com/blog/?id=1517805784", + "params": {}, + "expected": { + "code": 200, + "status": "picker" + } + }, + { + "name": "single image, mobile link", + "url": "https://m.duitang.com/blog/?id=1517805784", + "params": {}, + "expected": { + "code": 200, + "status": "picker" + } + }, + { + "name": "regular album, mobile link", + "url": "https://m.duitang.com/atlas/?id=135382417", + "expected": { + "code": 200, + "status": "picker" + } + } +] \ No newline at end of file