windows installer fixes
This commit is contained in:
@@ -6,6 +6,7 @@ import struct
|
||||
import sqlite3
|
||||
import unittest
|
||||
import urllib.request
|
||||
import uuid
|
||||
import warnings
|
||||
from datetime import datetime, timezone, timedelta
|
||||
|
||||
@@ -21,12 +22,8 @@ import pgpy
|
||||
|
||||
class TestServerComponent(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.test_db = "test_server_state.db"
|
||||
self.test_config = "test_server_config.json"
|
||||
if os.path.exists(self.test_db):
|
||||
os.remove(self.test_db)
|
||||
if os.path.exists(self.test_config):
|
||||
os.remove(self.test_config)
|
||||
self.test_db = f"test_server_state_{uuid.uuid4().hex[:8]}.db"
|
||||
self.test_config = f"test_server_config_{uuid.uuid4().hex[:8]}.json"
|
||||
|
||||
def tearDown(self):
|
||||
if os.path.exists(self.test_db):
|
||||
|
||||
Reference in New Issue
Block a user