Skip to content

Commit c23e3ac

Browse files
committed
TEST WIP
1 parent fb52b25 commit c23e3ac

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"__class__": "HttpsUrlAvailable", "category": "FetchablesUrlCheck", "package": "HttpsUrlAvailable", "version": "0", "attr": "SRC_URI", "url": "http://github.com/pkgcore/pkgcheck/foo.tar.gz", "new_url": "https://github.com/pkgcore/pkgcheck/foo.tar.gz"}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DIST foo.tar.gz 153310 BLAKE2B b7484cd9bebe912f9c8877c0f09df059130c2dc5c4da8c926f8df7945bcb7b255ccf810ce8cd16a957fb5bca3d1e71c088cd894968641db5dfae1c4c059df836 SHA512 86ff9e1c4b9353b1fbb475c7bb9d2a97bd9db8421ea5190b5a84832930b34cb5b79f8c3da68a5eb8db334f06851ec129cc6611a371e47b7c5de7a615feec5e05
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#inherit pypi
2+
3+
DESCRIPTION="Ebuild with PyPI attestation available"
4+
HOMEPAGE="https://github.com/pkgcore/pkgcheck"
5+
SRC_URI="foo.tar.gz"
6+
7+
8+
LICENSE="BSD"
9+
SLOT="0"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import io
2+
3+
from requests.models import Response
4+
5+
# initial URL check
6+
r = Response()
7+
r.status_code = 200
8+
r.reason = "OK"
9+
r.url = "http://github.com/pkgcore/pkgcheck/foo.tar.gz"
10+
r.raw = io.StringIO()
11+
# now checking if https:// exists
12+
https_r = Response()
13+
https_r.status_code = 200
14+
https_r.reason = "OK"
15+
https_r.url = "https://github.com/pkgcore/pkgcheck/foo.tar.gz"
16+
https_r.raw = io.StringIO()
17+
18+
responses = [r, https_r]

0 commit comments

Comments
 (0)