Skip to content
Merged
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
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ optional-dependencies.develop = [
"mypy<1.20",
"poethepoet<1",
"pyproject-fmt<3",
"ruff<0.13",
"ruff<0.15",
"validate-pyproject<1",
]
optional-dependencies.docs = [
Expand Down Expand Up @@ -191,8 +191,6 @@ lint.extend-ignore = [
"B905",
"C408", # Unnecessary `dict()` call (rewrite as a literal)
"ERA001", # Found commented-out code.
# df is a bad variable name. Be kinder to your future self.
"PD901",
# Unnecessary variable assignment before `return` statement
"RET504",
# Unnecessary `elif` after `return` statement
Expand Down
12 changes: 7 additions & 5 deletions tests/github/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ def test_cli_att(cli_runner):
"""
result = cli_runner.invoke(
cli,
args="gh att --organization=tech-writing --when=2025W08",
args="gh att --organization=tech-writing --when=2025W09",
catch_exceptions=False,
)
assert result.exit_code == 0
assert "# Attention report 2025W08" in result.output
assert "sphinx-design-elements" in result.output
assert "# Attention report 2025W09" in result.output
assert "rapporto" in result.output


def test_cli_backup_unauthorized(cli_runner, capfd):
Expand All @@ -55,5 +55,7 @@ def test_cli_backup_unauthorized(cli_runner, capfd):
assert result.exit_code == 2
assert "ERROR: Command" in result.output

out, err = capfd.readouterr()
assert "API request returned HTTP 401: Unauthorized" in err
_, err = capfd.readouterr()
assert (
"API request returned HTTP 401: Unauthorized" in err or "API Error: 401 Unauthorized" in err
)