Skip to content

Commit

Permalink
Remove misspelled and unused ensure_directoiries() from `test_helpe…
Browse files Browse the repository at this point in the history
…rs.py`
  • Loading branch information
jwodder authored and asmacdo committed Jun 10, 2024
1 parent 7e26b20 commit 5d7e03b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions test/test_helpers.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
import os
from unittest import mock
import pytest
from duct import ensure_directories


def ensure_directoiries(path: str) -> None:
if path.endswith(os.sep): # If it ends in "/" (for linux) treat as a dir
os.makedirs(path, exist_ok=True)
else:
# Path does not end with a separator, treat the last part as a filename
directory = os.path.dirname(path)
if directory: # If there's a directory part, create it
os.makedirs(directory, exist_ok=True)


@pytest.mark.parametrize(
"path",
[
Expand Down

0 comments on commit 5d7e03b

Please sign in to comment.