Ver código fonte

Merge remote-tracking branch 'origin/master'

tags/v1.0.0rc2
Hosted Weblate 1 mês atrás
pai
commit
95e3ff5ae2
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: A3FAAA06E6569B4C
4 arquivos alterados com 8 adições e 5 exclusões
  1. +1
    -0
      .github/workflows/tests.yml
  2. +3
    -3
      pyproject.toml
  3. +3
    -1
      tests/dates.py
  4. +1
    -1
      tests/general.py

+ 1
- 0
.github/workflows/tests.yml Ver arquivo

@@ -22,6 +22,7 @@ jobs:
python-version: python-version:
- '3.12' - '3.12'
- '3.13' - '3.13'
- '3.14'


name: Python ${{ matrix.python-version }} on ${{ matrix.os }} name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
steps: steps:


+ 3
- 3
pyproject.toml Ver arquivo

@@ -4,11 +4,11 @@ version = "1.0.0rc1"
description = "A program to compute the ephemerides." description = "A program to compute the ephemerides."
authors = ["Jérôme Deuchnord <jerome@deuchnord.fr>"] authors = ["Jérôme Deuchnord <jerome@deuchnord.fr>"]
license = "AGPL-3.0-or-later" license = "AGPL-3.0-or-later"
readme = "README.md"


include = [ include = [
"CHANGELOG.md",
"kosmorro/locales/*/LC_MESSAGES/*.mo",
"kosmorro/assets",
{ path = "kosmorro/locales", format = "wheel" },
{ path = "kosmorro/assets", format=["sdist", "wheel"] },
] ]


[tool.poetry.scripts] [tool.poetry.scripts]


+ 3
- 1
tests/dates.py Ver arquivo

@@ -1,5 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3


from sys import version_info as python_version
from .utils import execute, KOSMORRO from .utils import execute, KOSMORRO




@@ -38,7 +39,8 @@ def test_with_incorrect_date_values():
result = execute(KOSMORRO + arg) result = execute(KOSMORRO + arg)
assert not result.successful assert not result.successful
assert ( assert (
result.stderr == f"The date {value} is not valid: month must be in 1..12\n"
result.stderr
== f"The date {value} is not valid: month must be in 1..12{", not 13" if python_version.minor >= 14 else ""}\n"
) )






+ 1
- 1
tests/general.py Ver arquivo

@@ -34,7 +34,7 @@ def test_help_message():
for arg in ["--help", "-h"]: for arg in ["--help", "-h"]:
result = execute(KOSMORRO + [arg]) result = execute(KOSMORRO + [arg])


assert result.is_successful()
assert result.successful


assert result.successful assert result.successful




Carregando…
Cancelar
Salvar