mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
🎡 add unit tests for github.py
add unittests for our github api calls
This commit is contained in:
parent
1b19293ab0
commit
44b0af933d
3 changed files with 175 additions and 3 deletions
|
|
@ -85,7 +85,7 @@ class GithubApi:
|
|||
with urllib.request.urlopen(req) as resp:
|
||||
refs = json.load(resp)
|
||||
for ref in refs:
|
||||
r = ref['ref']
|
||||
r = ref.get('ref', '')
|
||||
if r.startswith('refs/tags/'):
|
||||
tags.append(r[10:])
|
||||
return tags
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue