mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-07-24 03:09:56 +00:00
improve wording in documentation
This commit is contained in:
@ -177,7 +177,7 @@ async def test_auth_handler_write(mocker: MockerFixture) -> None:
|
||||
|
||||
def test_setup_auth(application_with_auth: web.Application, auth: Auth, mocker: MockerFixture) -> None:
|
||||
"""
|
||||
must setup authorization
|
||||
must set up authorization
|
||||
"""
|
||||
setup_mock = mocker.patch("aiohttp_security.setup")
|
||||
application = setup_auth(application_with_auth, auth)
|
||||
|
@ -6,7 +6,7 @@ from ahriman.web.routes import setup_routes
|
||||
|
||||
def test_setup_routes(application: web.Application, configuration: Configuration) -> None:
|
||||
"""
|
||||
must generate non empty list of routes
|
||||
must generate non-empty list of routes
|
||||
"""
|
||||
setup_routes(application, configuration.getpath("web", "static_path"))
|
||||
assert application.router.routes()
|
||||
|
@ -62,7 +62,7 @@ async def test_get(client: TestClient, package_ahriman: Package) -> None:
|
||||
assert logs["logs"] == "[1970-01-01 00:00:42] message"
|
||||
|
||||
|
||||
async def test_get_not_foud(client: TestClient, package_ahriman: Package) -> None:
|
||||
async def test_get_not_found(client: TestClient, package_ahriman: Package) -> None:
|
||||
"""
|
||||
must return not found for missing package
|
||||
"""
|
||||
|
@ -51,7 +51,7 @@ async def test_get_redirect_to_oauth_empty_code(client_with_oauth_auth: TestClie
|
||||
|
||||
async def test_get(client_with_oauth_auth: TestClient, mocker: MockerFixture) -> None:
|
||||
"""
|
||||
must login user correctly from OAuth
|
||||
must log in user correctly from OAuth
|
||||
"""
|
||||
oauth = client_with_oauth_auth.app["validator"]
|
||||
oauth.get_oauth_username.return_value = "user"
|
||||
@ -86,7 +86,7 @@ async def test_get_unauthorized(client_with_oauth_auth: TestClient, mocker: Mock
|
||||
|
||||
async def test_post(client_with_auth: TestClient, user: User, mocker: MockerFixture) -> None:
|
||||
"""
|
||||
must login user correctly
|
||||
must log in user correctly
|
||||
"""
|
||||
payload = {"username": user.username, "password": user.password}
|
||||
remember_mock = mocker.patch("aiohttp_security.remember")
|
||||
|
@ -19,7 +19,7 @@ async def test_get_permission() -> None:
|
||||
|
||||
async def test_post(client_with_auth: TestClient, mocker: MockerFixture) -> None:
|
||||
"""
|
||||
must logout user correctly
|
||||
must log out user correctly
|
||||
"""
|
||||
mocker.patch("aiohttp_security.check_authorized")
|
||||
forget_mock = mocker.patch("aiohttp_security.forget")
|
||||
|
Reference in New Issue
Block a user