mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-08-30 14:27:59 +00:00
feat(devtools): bump Flow canary on release
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
from pathlib import Path
|
||||
from textwrap import dedent
|
||||
|
||||
from crewai_devtools import cli as devtools_cli
|
||||
from crewai_devtools.cli import (
|
||||
_DEFAULT_WORKSPACE_PACKAGES,
|
||||
_pin_crewai_deps,
|
||||
@@ -13,6 +14,24 @@ from crewai_devtools.cli import (
|
||||
)
|
||||
|
||||
|
||||
def test_release_updates_crew_and_flow_canary_repositories(monkeypatch) -> None:
|
||||
updates = []
|
||||
monkeypatch.setattr(
|
||||
devtools_cli,
|
||||
"_update_deployment_test_repo",
|
||||
lambda repo, version, is_prerelease: updates.append(
|
||||
(repo, version, is_prerelease)
|
||||
),
|
||||
)
|
||||
|
||||
devtools_cli._update_deployment_test_repos("2.0.0a1", True)
|
||||
|
||||
assert updates == [
|
||||
("crewAIInc/crew_deployment_test", "2.0.0a1", True),
|
||||
("crewAIInc/flow_deployment_test", "2.0.0a1", True),
|
||||
]
|
||||
|
||||
|
||||
class TestUpdatePyprojectVersion:
|
||||
def test_updates_version(self, tmp_path: Path) -> None:
|
||||
pyproject = tmp_path / "pyproject.toml"
|
||||
|
||||
Reference in New Issue
Block a user