Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ def default(session):
"--ignore=tests/unit/architecture",
"--ignore=tests/unit/vertexai/genai/replays",
"--ignore=tests/unit/agentplatform/genai/replays",
"--ignore=tests/unit/agentplatform/frameworks",
os.path.join("tests", "unit"),
*session.posargs,
)
Expand Down Expand Up @@ -301,12 +302,12 @@ def unit_ray(session, ray):
def unit_langchain(session):
# Install all test dependencies, then install this package in-place.

constraints_path = str(CURRENT_DIRECTORY / "testing" / "constraints-langchain.txt")
constraints_path = str(CURRENT_DIRECTORY / "testing" / "constraints-ag2.txt")
standard_deps = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_DEPENDENCIES
session.install(*standard_deps, "-c", constraints_path)

# Install langchain extras
session.install("-e", ".[langchain_testing]", "-c", constraints_path)
session.install("-e", ".[ag2_testing]", "-c", constraints_path)

# Run py.test against the unit tests.
session.run(
Expand All @@ -318,7 +319,7 @@ def unit_langchain(session):
"--cov-config=.coveragerc",
"--cov-report=",
"--cov-fail-under=0",
os.path.join("tests", "unit", "vertex_langchain"),
os.path.join("tests", "unit", "agentplatform", "frameworks", "test_frameworks_ag2.py"),
*session.posargs,
)

Expand Down
Loading
Loading