From f4952d028a3932923221ccac6038ffe83f854e50 Mon Sep 17 00:00:00 2001 From: Deuchnord Date: Sun, 12 Nov 2023 12:06:05 +0100 Subject: [PATCH] feat: add support for Windows --- .github/workflows/tests.yml | 1 + Makefile | 2 +- tests/{dates.py => test_dates.py} | 2 +- tests/{general.py => test_general.py} | 2 +- tests/{output.py => test_output.py} | 2 +- tests/{position.py => test_position.py} | 2 +- tests/{timezone.py => test_timezone.py} | 2 +- tests/{utils.py => test_utils.py} | 0 8 files changed, 7 insertions(+), 6 deletions(-) rename tests/{dates.py => test_dates.py} (97%) rename tests/{general.py => test_general.py} (99%) rename tests/{output.py => test_output.py} (99%) rename tests/{position.py => test_position.py} (98%) rename tests/{timezone.py => test_timezone.py} (98%) rename tests/{utils.py => test_utils.py} (100%) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a09b2be..0a2f7fe 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,6 +19,7 @@ jobs: os: - ubuntu-latest - macos-latest + - windows-latest python-version: - '3.8' - '3.9' diff --git a/Makefile b/Makefile index 2c1952a..08084d7 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ black: .PHONY: tests tests: - LANG=C python3 -m poetry run pytest tests/*.py + python3 -m poetry run pytest tests/ .PHONY: build build: diff --git a/tests/dates.py b/tests/test_dates.py similarity index 97% rename from tests/dates.py rename to tests/test_dates.py index affee6c..87eb6b9 100644 --- a/tests/dates.py +++ b/tests/test_dates.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -from .utils import execute, KOSMORRO +from .test_utils import execute, KOSMORRO def test_with_date(): diff --git a/tests/general.py b/tests/test_general.py similarity index 99% rename from tests/general.py rename to tests/test_general.py index 92e099b..25a6de4 100644 --- a/tests/general.py +++ b/tests/test_general.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 from sys import version_info as python_version -from .utils import ( +from .test_utils import ( execute, KOSMORRO, CURRENT_MOON_PHASE_PATTERN, diff --git a/tests/output.py b/tests/test_output.py similarity index 99% rename from tests/output.py rename to tests/test_output.py index 888e365..cbc0e27 100644 --- a/tests/output.py +++ b/tests/test_output.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -from .utils import ( +from .test_utils import ( execute, KOSMORRO, ) diff --git a/tests/position.py b/tests/test_position.py similarity index 98% rename from tests/position.py rename to tests/test_position.py index b2137bf..2e3bb18 100644 --- a/tests/position.py +++ b/tests/test_position.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -from .utils import ( +from .test_utils import ( execute, KOSMORRO, ) diff --git a/tests/timezone.py b/tests/test_timezone.py similarity index 98% rename from tests/timezone.py rename to tests/test_timezone.py index 47ee0bb..e06308a 100644 --- a/tests/timezone.py +++ b/tests/test_timezone.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -from .utils import ( +from .test_utils import ( execute, KOSMORRO, ) diff --git a/tests/utils.py b/tests/test_utils.py similarity index 100% rename from tests/utils.py rename to tests/test_utils.py