fix: count success if test doesnt fail
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
7bb6595394
commit
40d1ab1cfa
2 changed files with 5 additions and 10 deletions
|
@ -31,6 +31,7 @@ logger = configure_logger()
|
|||
|
||||
def upload_logs_to_ftest(success: bool, logs: str):
|
||||
from .env import FTEST_HOST, FTEST_AUTH
|
||||
|
||||
parsed_ftest_host = urlparse(FTEST_HOST)
|
||||
ftest = urlunparse(
|
||||
(
|
||||
|
|
|
@ -32,16 +32,8 @@ def get_fediverse_actor(context):
|
|||
|
||||
@when("Receiving or querying an object")
|
||||
def check_actor_exists(context):
|
||||
name = "check_actor_exists"
|
||||
try:
|
||||
actor = get_ap_obj(context.actor_url)
|
||||
assert actor is not None
|
||||
except Exception as e:
|
||||
logger.error(e)
|
||||
context.failure[name] = e
|
||||
raise e
|
||||
|
||||
context.success.append(name)
|
||||
actor = get_ap_obj(context.actor_url)
|
||||
assert actor is not None
|
||||
context.actor = actor
|
||||
|
||||
|
||||
|
@ -70,6 +62,7 @@ def verify_id_resolves(context):
|
|||
logger.error(e)
|
||||
context.failure[name] = e
|
||||
raise e
|
||||
context.success.append(name)
|
||||
|
||||
|
||||
@then("context must be ActivityPub")
|
||||
|
@ -88,3 +81,4 @@ def ctx_is_ap(context):
|
|||
logger.error(e)
|
||||
context.failure[name] = e
|
||||
raise e
|
||||
context.success.append(name)
|
||||
|
|
Loading…
Reference in a new issue