Migliorie test suite

This commit is contained in:
mac12m99
2021-10-27 20:32:05 +02:00
parent 1b61616806
commit e8c5f335b3
3 changed files with 8 additions and 3 deletions
+3
View File
@@ -60,6 +60,7 @@ class UnshortenIt(object):
def unshorten(self, uri, type=None):
code = 0
originalUri = uri
while True:
uri = uri.strip()
oldUri = uri
@@ -114,6 +115,8 @@ class UnshortenIt(object):
logger.info(uri)
if originalUri == uri and logger.testMode:
raise Exception('Not un-shortened link: ' + uri)
return uri, code
def unwrap_30x(self, uri, timeout=10):