Skip to content

Commit 6c6ecde

Browse files
authored
refactor: rename _dotenvpath.py and test_dotenvpath.py; remove dotenvpath from cspell dictionary (#944)
1 parent 0dfd55f commit 6c6ecde

6 files changed

Lines changed: 8 additions & 9 deletions

File tree

.config/cspell/project-software-terms.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ ctypeslib # Standard library: ctypes
1515
CVICALLBACK # NI CVI calling convention macro (C interop comment)
1616
docstrings # Python terminology
1717
dotenv # Dependency: python-decouple / dotenv
18-
dotenvpath # Typo - TODO - rename the files and make related changes
1918
dpkg # Linux system tool names (external)
2019
dtype # Dependency: numpy
2120
fixturenames # Dependency: pytest

generated/nidaqmx/_feature_toggles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
from decouple import AutoConfig, Undefined, undefined
1212

13-
from nidaqmx._dotenvpath import get_dotenv_search_path
13+
from nidaqmx._dotenv_path import get_dotenv_search_path
1414
from nidaqmx.errors import FeatureNotSupportedError
1515

1616
if TYPE_CHECKING:

src/handwritten/_feature_toggles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
from decouple import AutoConfig, Undefined, undefined
1212

13-
from nidaqmx._dotenvpath import get_dotenv_search_path
13+
from nidaqmx._dotenv_path import get_dotenv_search_path
1414
from nidaqmx.errors import FeatureNotSupportedError
1515

1616
if TYPE_CHECKING:
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import pytest
44

5-
from nidaqmx import _dotenvpath
5+
from nidaqmx import _dotenv_path
66

77

88
@pytest.mark.parametrize("dotenv_exists", [False, True])
@@ -15,20 +15,20 @@ def test___dotenv_exists_varies___has_dotenv_file___matches_dotenv_exists(
1515
for dir in subdirs:
1616
dir.mkdir()
1717

18-
assert _dotenvpath._has_dotenv_file(tmp_path) == dotenv_exists
19-
assert all([_dotenvpath._has_dotenv_file(p) == dotenv_exists for p in subdirs])
18+
assert _dotenv_path._has_dotenv_file(tmp_path) == dotenv_exists
19+
assert all([_dotenv_path._has_dotenv_file(p) == dotenv_exists for p in subdirs])
2020

2121

2222
def test___get_caller_path___returns_this_modules_path() -> None:
23-
assert _dotenvpath._get_caller_path() == Path(__file__)
23+
assert _dotenv_path._get_caller_path() == Path(__file__)
2424

2525

2626
def test___get_package_path___returns_package_dir() -> None:
27-
assert _dotenvpath._get_package_path() == Path(_dotenvpath.__file__).parent
27+
assert _dotenv_path._get_package_path() == Path(_dotenv_path.__file__).parent
2828

2929

3030
def test___get_script_or_exe_path___returns_pytest_path() -> None:
31-
path = _dotenvpath._get_script_or_exe_path()
31+
path = _dotenv_path._get_script_or_exe_path()
3232

3333
assert path is not None
3434
assert "pytest" in path.parts or "pytest.exe" in path.parts or "vscode_pytest" in path.parts

0 commit comments

Comments
 (0)