Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9f87f86189 | |||
| 9ac68ddb2a | |||
| 2d7bbd1a1f |
+1
-1
@@ -21,7 +21,7 @@ license = { text = "MIT" }
|
||||
name = "pyflowx"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
version = "0.4.10"
|
||||
version = "0.4.11"
|
||||
|
||||
[project.scripts]
|
||||
emlman = "pyflowx.cli.legacy.emlmanager:main"
|
||||
|
||||
@@ -112,7 +112,7 @@ from .task import (
|
||||
from .tools import ToolSpec, list_subcommands, list_tools, run_tool, tool
|
||||
from .yaml_loader import load_yaml, parse_yaml_string
|
||||
|
||||
__version__ = "0.4.10"
|
||||
__version__ = "0.4.11"
|
||||
|
||||
|
||||
def graph(
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import re
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
@@ -9,6 +10,13 @@ import pytest
|
||||
|
||||
from pyflowx.ops.dev import bumpversion
|
||||
|
||||
_ANSI_RE = re.compile(r"\x1b\[[0-9;]*[a-zA-Z]")
|
||||
|
||||
|
||||
def _strip_ansi(text: str) -> str:
|
||||
"""移除 ANSI 转义码,使断言在 CI(富终端) 与本地环境一致."""
|
||||
return _ANSI_RE.sub("", text)
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def auto_use_tmp_path(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
@@ -205,7 +213,7 @@ class TestBumpversionCliDispatch:
|
||||
app = PfApp(["bumpversion", "-h"])
|
||||
rc = app.run()
|
||||
assert rc == 0
|
||||
out = capsys.readouterr().out
|
||||
out = _strip_ansi(capsys.readouterr().out)
|
||||
assert "--part" in out
|
||||
assert "patch" in out
|
||||
|
||||
|
||||
Reference in New Issue
Block a user