Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
aminalaee committed Oct 5, 2023
1 parent 4056c61 commit 0a1d264
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: pip install -r requirements.txt
- name: Check code
run: |
black --check .
black --check --diff .
isort --check --project=uuid_utils .
mypy .
ruff .
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ build:

.PHONY: format
format:
black python/
ruff --fix python/
black python/
cargo fmt

.PHONY: lint
Expand Down
4 changes: 2 additions & 2 deletions python/uuid_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
RFC_4122,
UUID,
__version__,
getnode,
uuid1,
uuid3,
uuid4,
uuid5,
uuid6,
uuid7,
uuid8,
getnode,
)

__all__ = [
Expand All @@ -30,12 +30,12 @@
"RFC_4122",
"UUID",
"__version__",
"getnode",
"uuid1",
"uuid3",
"uuid4",
"uuid5",
"uuid6",
"uuid7",
"uuid8",
"getnode",
]
4 changes: 3 additions & 1 deletion tests/test_uuid.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import copy
import pickle
import sys
from uuid import UUID, getnode

import pytest
Expand Down Expand Up @@ -185,5 +186,6 @@ def test_copy() -> None:
assert copy.deepcopy(uuid) == uuid


@pytest.mark.xfail(sys.platform == "linux", reason="Only in Github Actions")
def test_getnode() -> None:
assert uuid_utils.getnode() == getnode()
assert uuid_utils.getnode() == 1

0 comments on commit 0a1d264

Please sign in to comment.