Skip to content

Commit

Permalink
Add test for the "SUPPORTED" variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Delgan committed Dec 7, 2024
1 parent 311b698 commit c900d5e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_setctime.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@

import pytest

from win32_setctime import setctime
from win32_setctime import setctime, SUPPORTED


def getctime(filepath):
# Fix for Python 3.5 not supporting pathlib
return os.path.getctime(str(filepath))


def test_supported():
assert SUPPORTED


def test_setctime(tmp_path):
filepath = tmp_path / "test_setctime.txt"
timestamp = 946681200
Expand Down

0 comments on commit c900d5e

Please sign in to comment.