Skip to content

Commit

Permalink
mkdir
Browse files Browse the repository at this point in the history
  • Loading branch information
cmcmarrow committed Sep 28, 2023
1 parent 994094c commit e69a4bb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/pytests/functional/modules/test_win_file.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
import os
import pytest
from salt.modules import win_file


pytestmark = [
pytest.mark.skip_on_windows,
]

def test_is_link(tmp_path):
tmp_path = str(tmp_path)
assert win_file.is_link(tmp_path) is True
assert win_file.is_link(os.path.join(tmp_path, "made_up_path")) is True


def test_mkdir(tmp_path):
tmp_path = str(tmp_path)
path = os.path.join(tmp_path, "dir")
assert win_file.mkdir(path) is True
assert os.path.isdir(path)

0 comments on commit e69a4bb

Please sign in to comment.