You've already forked hotpocket
BTHLABS-66: Prepping for public release: Take one
This commit is contained in:
@@ -17,3 +17,15 @@ class AuthKeysTestingService:
|
||||
|
||||
assert auth_key.created_at is not None
|
||||
assert auth_key.updated_at is not None
|
||||
|
||||
def assert_deleted(self,
|
||||
pk: uuid.UUID,
|
||||
):
|
||||
query_set = AuthKey.objects.filter(pk=pk)
|
||||
assert query_set.exists() is False
|
||||
|
||||
def assert_exists(self,
|
||||
pk: uuid.UUID,
|
||||
):
|
||||
query_set = AuthKey.objects.filter(pk=pk)
|
||||
assert query_set.count() == 1
|
||||
|
||||
Reference in New Issue
Block a user