soleprint init commit
This commit is contained in:
29
station/tools/tester/tests/_dev/test_health.py
Normal file
29
station/tools/tester/tests/_dev/test_health.py
Normal file
@@ -0,0 +1,29 @@
|
||||
"""
|
||||
Development Test: Health Check
|
||||
|
||||
Minimal test to verify tester is working when backend tests aren't available.
|
||||
Tests basic HTTP connectivity and authentication flow.
|
||||
"""
|
||||
|
||||
from ..base import ContractTestCase
|
||||
from ..endpoints import Endpoints
|
||||
|
||||
|
||||
class TestHealth(ContractTestCase):
|
||||
"""Basic health and connectivity tests"""
|
||||
|
||||
def test_can_connect_to_base_url(self):
|
||||
"""Verify we can connect to the configured URL"""
|
||||
# This just ensures httpx and base URL work
|
||||
try:
|
||||
response = self.get("/health/")
|
||||
except Exception as e:
|
||||
self.skipTest(f"Cannot connect to {self.base_url}: {e}")
|
||||
|
||||
# If we got here, connection worked
|
||||
self.assertIsNotNone(response)
|
||||
|
||||
def test_token_authentication(self):
|
||||
"""Verify token authentication is configured"""
|
||||
# Just checks that we have a token (either from env or fetch)
|
||||
self.assertIsNotNone(self.token, "No authentication token available")
|
||||
Reference in New Issue
Block a user