Skip to content

Commit 4fc84be

Browse files
committed
ignoring more watsonx for now
1 parent 5c0c3ee commit 4fc84be

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

test/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ def pytest_runtest_setup(item):
2121
gh_run = int(os.environ.get("CICD", 0))
2222

2323
if gh_run == 1:
24-
pytest.skip(
24+
pytest.xfail(
2525
reason="Skipping qualitative test: got env variable CICD == 1. Used only in gh workflows."
2626
)

test/stdlib_basics/test_session.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77

88

99
def test_start_session_watsonx():
10-
m = start_session(backend_name="watsonx")
11-
response = m.instruct("testing")
12-
assert isinstance(response, ModelOutputThunk)
13-
assert response.value is not None
10+
if os.environ.get("CICD") == 1:
11+
pytest.skip("Skipping watsonx tests.")
12+
else:
13+
m = start_session(backend_name="watsonx")
14+
response = m.instruct("testing")
15+
assert isinstance(response, ModelOutputThunk)
16+
assert response.value is not None
1417

1518

1619
def test_start_session_openai_with_kwargs(gh_run):

0 commit comments

Comments
 (0)