Buckets:

download
raw
658 Bytes
""" tests for the _AllPermission class and All constant """
def test_all_instance():
""" is the "All" constant an instance of "_AllPermissions" """
from fastapi_permissions import All, _AllPermissions
assert isinstance(All, _AllPermissions)
def test_all_permissions_contains():
""" does "All" contain everything """
from fastapi_permissions 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 import All
assert str(All) == "permissions:*"

Xet Storage Details

Size:
658 Bytes
·
Xet hash:
49b6f11cec291fa5386f9839329b2ae13f8032a276e842134915cbc5ccf4b19b

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