feat: test webfinger utility
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful

This commit is contained in:
Aravinth Manivannan 2024-06-09 17:21:33 +05:30
parent a577bbb025
commit f49994d7cc
Signed by: realaravinth
GPG key ID: F8F50389936984FF

View file

@ -0,0 +1,12 @@
import pytest
from ftest_common.webfinger import get_webfinger
import os
def test_webfinger():
os.environ["FTEST_AUTH"] = "foo"
os.environ["FTEST_HOST"] = "http://localhost"
os.environ["FTEST_USER"] = "forgeflux@batsense.net"
os.environ["FTEST_TARGET_HOST"] = "https://gts.batsense.net"
get_webfinger()