Buckets:

download
raw
676 Bytes
""" tests for the _AllPermission class and All constant """
def test_all_instance():
""" is the "All" constant an instance of "_AllPermissions" """
from fastapi_permissions_alive import All, _AllPermissions
assert isinstance(All, _AllPermissions)
def test_all_permissions_contains():
""" does "All" contain everything """
from fastapi_permissions_alive import All
for something in [True, False, None, "string", [], {}, 1, All]:
assert something in All
def test_all_permission_string():
""" test the string representation of the "All" constan """
from fastapi_permissions_alive import All
assert str(All) == "permissions:*"

Xet Storage Details

Size:
676 Bytes
·
Xet hash:
5b9985df92de449de6644863cce83ea2ddc583163fd3ead7f11cc14a03a1e708

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.