]> Nutra Git (v1) - nutratech/cli.git/commitdiff
appease pycharm
authorShane Jaroch <chown_tee@proton.me>
Mon, 26 Feb 2024 03:24:33 +0000 (22:24 -0500)
committerShane Jaroch <chown_tee@proton.me>
Mon, 26 Feb 2024 03:24:33 +0000 (22:24 -0500)
tests/test_cli.py

index 3c3e8300f7212c91be795999281c053310b1772f..5064c451bc4684e1571865095bcc98ffa253612c 100644 (file)
@@ -7,6 +7,7 @@ Created on Fri Jan 31 15:19:53 2020
 
 @author: shane
 """
+import datetime
 import os
 import sys
 import unittest
@@ -381,8 +382,8 @@ class TestCli(unittest.TestCase):
         new_release = str(int(release) + 1)
         new_version = ".".join([major, minor, new_release])
         _usda_sql(
-            "INSERT INTO version (version) VALUES (?)",
-            values=(new_version,),
+            "INSERT INTO version (version, created) VALUES (?,?)",
+            values=(new_version,datetime.datetime.utcnow()),
             version_check=False,
         )
 
@@ -420,8 +421,8 @@ class TestCli(unittest.TestCase):
             # TODO: resolve PermissionError on Windows
             print(repr(err))
             _usda_sql(
-                "INSERT INTO version (version) VALUES (?)",
-                values=(__db_target_usda__,),
+                "INSERT INTO version (version, created) VALUES (?,?)",
+                values=(__db_target_usda__, datetime.datetime.utcnow()),
                 version_check=False,
             )
             pytest.xfail("PermissionError, are you using Microsoft Windows?")