Parcourir la source

feat: add support for Windows

feat/windows-support
Deuchnord il y a 6 mois
committed by Jérôme Deuchnord
Parent
révision
f4952d028a
8 fichiers modifiés avec 7 ajouts et 6 suppressions
  1. +1
    -0
      .github/workflows/tests.yml
  2. +1
    -1
      Makefile
  3. +1
    -1
      tests/test_dates.py
  4. +1
    -1
      tests/test_general.py
  5. +1
    -1
      tests/test_output.py
  6. +1
    -1
      tests/test_position.py
  7. +1
    -1
      tests/test_timezone.py
  8. +0
    -0
      tests/test_utils.py

+ 1
- 0
.github/workflows/tests.yml Voir le fichier

@@ -19,6 +19,7 @@ jobs:
os: os:
- ubuntu-latest - ubuntu-latest
- macos-latest - macos-latest
- windows-latest
python-version: python-version:
- '3.8' - '3.8'
- '3.9' - '3.9'


+ 1
- 1
Makefile Voir le fichier

@@ -3,7 +3,7 @@ black:


.PHONY: tests .PHONY: tests
tests: tests:
LANG=C python3 -m poetry run pytest tests/*.py
python3 -m poetry run pytest tests/


.PHONY: build .PHONY: build
build: build:


tests/dates.py → tests/test_dates.py Voir le fichier

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


from .utils import execute, KOSMORRO
from .test_utils import execute, KOSMORRO




def test_with_date(): def test_with_date():

tests/general.py → tests/test_general.py Voir le fichier

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


from sys import version_info as python_version from sys import version_info as python_version
from .utils import (
from .test_utils import (
execute, execute,
KOSMORRO, KOSMORRO,
CURRENT_MOON_PHASE_PATTERN, CURRENT_MOON_PHASE_PATTERN,

tests/output.py → tests/test_output.py Voir le fichier

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


from .utils import (
from .test_utils import (
execute, execute,
KOSMORRO, KOSMORRO,
) )

tests/position.py → tests/test_position.py Voir le fichier

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


from .utils import (
from .test_utils import (
execute, execute,
KOSMORRO, KOSMORRO,
) )

tests/timezone.py → tests/test_timezone.py Voir le fichier

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


from .utils import (
from .test_utils import (
execute, execute,
KOSMORRO, KOSMORRO,
) )

tests/utils.py → tests/test_utils.py Voir le fichier


Chargement…
Annuler
Enregistrer