diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8aa389f..eba5c16 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,16 +16,13 @@ env: jobs: lint: - name: "Check code quality Python ${{ matrix.python-version }}" + name: Check code quality runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: "${{ matrix.python-version }}" + python-version: "3.10" - name: Install dependencies run: pip install -r requirements.txt - name: Check code diff --git a/tests/test_uuid.py b/tests/test_uuid.py index 45551f0..f023845 100644 --- a/tests/test_uuid.py +++ b/tests/test_uuid.py @@ -73,11 +73,9 @@ def test_uuid1() -> None: assert isinstance(uuid, uuid_utils.UUID) -def test_uuid3() -> None: - uuid = uuid_utils.uuid3(namespace=uuid_utils.NAMESPACE_DNS, name="python.org") - assert isinstance(uuid, uuid_utils.UUID) - - uuid = uuid_utils.uuid3(namespace=uuid_utils.NAMESPACE_DNS, name=b"python.org") +@pytest.mark.parametrize("name", ["python.org", b"python.org"]) +def test_uuid3(name: str) -> None: + uuid = uuid_utils.uuid3(namespace=uuid_utils.NAMESPACE_DNS, name=name) assert isinstance(uuid, uuid_utils.UUID) @@ -86,11 +84,9 @@ def test_uuid4() -> None: assert isinstance(uuid, uuid_utils.UUID) -def test_uuid5() -> None: - uuid = uuid_utils.uuid5(namespace=uuid_utils.NAMESPACE_DNS, name="python.org") - assert isinstance(uuid, uuid_utils.UUID) - - uuid = uuid_utils.uuid5(namespace=uuid_utils.NAMESPACE_DNS, name=b"python.org") +@pytest.mark.parametrize("name", ["python.org", b"python.org"]) +def test_uuid5(name: str) -> None: + uuid = uuid_utils.uuid5(namespace=uuid_utils.NAMESPACE_DNS, name=name) assert isinstance(uuid, uuid_utils.UUID)