Skip to content

Commit

Permalink
ci: add visual helpers for target env and print env in container test
Browse files Browse the repository at this point in the history
  • Loading branch information
chamini2 committed Dec 27, 2024
1 parent 6f5bef2 commit 177e62a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions projects/fal/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
6 changes: 5 additions & 1 deletion projects/fal/tests/test_stability.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 177e62a

Please sign in to comment.