Compare commits

..
2 Commits
Author SHA1 Message Date
imcompiling af3b8e9e69 Add lint ignores for tests.
build_develop / build (push) Successful in 44s
2025-04-24 08:59:47 -04:00
imcompiling a5655c4d6b Add a test for get_datetime. 2025-04-24 08:59:20 -04:00
4 changed files with 18 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
"""Empty init for testing util functions."""
+1
View File
@@ -0,0 +1 @@
"""Empty init for testing util functions."""
@@ -0,0 +1,13 @@
"""Tests for get_datetime function."""
import datetime
from freezegun import freeze_time
from dakiny_bot.utils import get_datetime
@freeze_time("2025-6-16")
def test_regular_get_datetime() -> None:
date_time = get_datetime("6/16")
assert date_time == datetime.datetime(2025, 6, 16)
+3
View File
@@ -131,3 +131,6 @@ docstring-code-format = true
# This only has an effect when the `docstring-code-format` setting is
# enabled.
docstring-code-line-length = "dynamic"
[tool.ruff.lint.per-file-ignores]
"**/{tests}/*" = ["ANN001", "ANN201", "S101", "PLR2004"]