From b5fead9d4dec4806e0744e334a3a7a5112c79c5b 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/__init__.py | 0 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 9 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 tests/__init__.py 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 a09b2be5..0a2f7feb 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 2c1952a8..08084d7d 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/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29b..00000000 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 affee6c6..87eb6b9f 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 92e099b6..25a6de48 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 888e365f..cbc0e27a 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 b2137bf9..2e3bb181 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 47ee0bb5..e06308aa 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