Skip to content

Commit

Permalink
Update test_dict_autz.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer authored Nov 18, 2023
1 parent 8cec6af commit f9510fe
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/test_dict_autz.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async def authorized_userid(self, identity):
return None


async def test_authorized_userid(loop, aiohttp_client):
async def test_authorized_userid(aiohttp_client):

async def login(request):
response = web.HTTPFound(location='/')
Expand All @@ -48,7 +48,7 @@ async def check(request):
assert 'Andrew' == txt


async def test_authorized_userid_not_authorized(loop, aiohttp_client):
async def test_authorized_userid_not_authorized(aiohttp_client):

async def check(request):
userid = await authorized_userid(request)
Expand All @@ -64,7 +64,7 @@ async def check(request):
assert 200 == resp.status


async def test_permits_enum_permission(loop, aiohttp_client):
async def test_permits_enum_permission(aiohttp_client):
class Permission(enum.Enum):
READ = '101'
WRITE = '102'
Expand Down Expand Up @@ -107,7 +107,7 @@ async def check(request):
assert 200 == resp.status


async def test_permits_unauthorized(loop, aiohttp_client):
async def test_permits_unauthorized(aiohttp_client):

async def check(request):
ret = await permits(request, 'read')
Expand All @@ -126,7 +126,7 @@ async def check(request):
assert 200 == resp.status


async def test_is_anonymous(loop, aiohttp_client):
async def test_is_anonymous(aiohttp_client):

async def index(request):
is_anon = await is_anonymous(request)
Expand Down Expand Up @@ -162,7 +162,7 @@ async def logout(request):
assert web.HTTPUnauthorized.status_code == resp.status


async def test_check_authorized(loop, aiohttp_client):
async def test_check_authorized(aiohttp_client):
async def index(request):
await check_authorized(request)
return web.Response()
Expand Down Expand Up @@ -195,7 +195,7 @@ async def logout(request):
assert web.HTTPUnauthorized.status_code == resp.status


async def test_check_permission(loop, aiohttp_client):
async def test_check_permission(aiohttp_client):

async def index_read(request):
await check_permission(request, 'read')
Expand Down

0 comments on commit f9510fe

Please sign in to comment.