From 177e62a7f605b31767d945a566ca3780db445136 Mon Sep 17 00:00:00 2001 From: Matteo Ferrando Date: Fri, 27 Dec 2024 11:54:34 -0400 Subject: [PATCH] ci: add visual helpers for target env and print env in container test --- projects/fal/tests/conftest.py | 6 ++++++ projects/fal/tests/test_stability.py | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/projects/fal/tests/conftest.py b/projects/fal/tests/conftest.py index 54e16511..f913bea6 100644 --- a/projects/fal/tests/conftest.py +++ b/projects/fal/tests/conftest.py @@ -1,9 +1,15 @@ from __future__ import annotations +import sys from functools import partial import pytest from fal import function +from fal.flags import GRPC_HOST +from fal.sdk import get_default_credentials + +print("TARGET:", GRPC_HOST, file=sys.stderr) +print("AUTH:", get_default_credentials(), file=sys.stderr) @pytest.fixture(scope="function") diff --git a/projects/fal/tests/test_stability.py b/projects/fal/tests/test_stability.py index 46864feb..5387b08d 100644 --- a/projects/fal/tests/test_stability.py +++ b/projects/fal/tests/test_stability.py @@ -87,7 +87,11 @@ def test_regular_function_in_a_container_with_custom_image(isolated_client): @isolated_client( "container", image=ContainerImage.from_dockerfile_str( - f"FROM python:{actual_python}-slim\n# {git_revision_short_hash()}" + f""" + FROM python:{actual_python}-slim + # {git_revision_short_hash()} + RUN env + """ ), ) def regular_function():