More splitting

This commit is contained in:
Reid 'arrdem' McKenzie 2023-06-03 13:22:49 -06:00
parent 59f6096945
commit bda009482b
2 changed files with 19 additions and 16 deletions

View file

@ -0,0 +1,19 @@
#!/usr/bin/env python3
from tentacles.store import Store
def test_store_initializes(store: Store):
assert isinstance(store, Store)
def test_store_savepoint(store: Store):
obj = store.savepoint()
assert hasattr(obj, "__enter__")
assert hasattr(obj, "__exit__")
flag = False
with obj:
flag = True
assert flag

View file

@ -3,22 +3,6 @@
from tentacles.store import Store from tentacles.store import Store
def test_store_initializes(store: Store):
assert isinstance(store, Store)
def test_store_savepoint(store: Store):
obj = store.savepoint()
assert hasattr(obj, "__enter__")
assert hasattr(obj, "__exit__")
flag = False
with obj:
flag = True
assert flag
def test_mkuser(store: Store, username_testy, password_testy): def test_mkuser(store: Store, username_testy, password_testy):
res = store.try_create_user( res = store.try_create_user(
username=username_testy, email=username_testy, password=password_testy username=username_testy, email=username_testy, password=password_testy