From 97b4fbd64d91ac67545eeda49cf9cb45129b1c81 Mon Sep 17 00:00:00 2001 From: Shane Jaroch Date: Sun, 25 Feb 2024 22:24:33 -0500 Subject: [PATCH] appease pycharm --- tests/test_cli.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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?") -- 2.52.0