From 9b0e4ab0bdb5c23158eb9e4be7e1349ebe38ad2d Mon Sep 17 00:00:00 2001 From: wukko Date: Sun, 24 Nov 2024 18:35:32 +0600 Subject: [PATCH] api/tests/soundcloud: add tests for region locked and paid songs --- api/src/util/tests/soundcloud.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/api/src/util/tests/soundcloud.json b/api/src/util/tests/soundcloud.json index ea705cb5..04ed8632 100644 --- a/api/src/util/tests/soundcloud.json +++ b/api/src/util/tests/soundcloud.json @@ -83,5 +83,24 @@ "code": 200, "status": "tunnel" } + }, + { + "name": "go+ song, should fail", + "url": "https://soundcloud.com/dualipa/illusion-1", + "params": {}, + "expected": { + "code": 400, + "status": "error" + } + }, + { + "name": "region locked song, should fail", + "canFail": true, + "url": "https://soundcloud.com/gotye/somebody-2024-feat-kimbra", + "params": {}, + "expected": { + "code": 400, + "status": "error" + } } ] \ No newline at end of file