From: Shane Jaroch Date: Mon, 26 Feb 2024 03:24:33 +0000 (-0500) Subject: appease pycharm X-Git-Tag: v0.2.8.dev0~2 X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=97b4fbd64d91ac67545eeda49cf9cb45129b1c81;p=nutratech%2Fcli.git appease pycharm --- diff --git a/tests/test_cli.py b/tests/test_cli.py index 3c3e830..5064c45 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -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?")