Fix tests

This commit is contained in:
simon987 2021-01-09 19:31:55 -05:00
parent e3f3ea87eb
commit a1156599ce

View File

@ -7,10 +7,12 @@ from hexlib.db import PersistentState
class TestPersistentState(TestCase):
def tearDown(self) -> None:
os.remove("state.db")
if os.path.exists("state.db"):
os.remove("state.db")
def setUp(self) -> None:
os.remove("state.db")
if os.path.exists("state.db"):
os.remove("state.db")
def test_get_set(self):
s = PersistentState()