Skip to content

Commit c6eed14

Browse files
committed
Fix NameError in tests
1 parent c39db81 commit c6eed14

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

tests/args_handling_test.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import argparse
55
import json
66
import platform
7+
from pathlib import Path
78
from typing import TYPE_CHECKING, Final
89

910
import pytest
@@ -29,14 +30,9 @@
2930
)
3031

3132
if TYPE_CHECKING:
32-
from pathlib import Path
33-
3433
from watchdog.observers.api import BaseObserver
3534

36-
if platform.system() == "Windows":
37-
from pathlib import Path # actually import Path when on Windows
38-
39-
DRIVE: Final[str] = Path().resolve().drive
35+
DRIVE: Final[str] = Path().resolve().drive
4036

4137

4238
@pytest.mark.skipif(

tests/utils_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99

1010
from auto_file_sorter.utils import resolved_path_from_str
1111

12-
if platform.system() == "Windows":
13-
DRIVE: Final[str] = Path().resolve().drive
12+
DRIVE: Final[str] = Path().resolve().drive
1413

1514
# pylint: disable=C0116
1615

0 commit comments

Comments
 (0)