fix: count success if test doesnt fail
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Aravinth Manivannan 2023-10-01 20:37:34 +05:30
parent 7bb6595394
commit 40d1ab1cfa
Signed by: realaravinth
GPG key ID: F8F50389936984FF
2 changed files with 5 additions and 10 deletions

View file

@ -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(
(

View file

@ -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)