mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-02 20:15:24 +02:00
docs: fix typos (#1665)
* docs: fix typos * typos: fix typos found by `codespell` across the codebase * docs: fix `macOS` spelling * docs: fix `authentification` terminology "Authentification" is not a thing. * docs: fix `localhost` typo in example link * typos: fix in-code typos These are potentially higher risk, but no other mentions of these typos show up in the codebase.
This commit is contained in:
parent
33dad80eff
commit
2e6b877ba9
46 changed files with 66 additions and 66 deletions
|
@ -32,7 +32,7 @@ def test_admin_about_get_app_statistics(api_client: TestClient, admin_user: Test
|
|||
|
||||
as_dict = response.json()
|
||||
|
||||
# Smoke Test - Test the endpoint returns something thats a number
|
||||
# Smoke Test - Test the endpoint returns something that's a number
|
||||
assert as_dict["totalRecipes"] >= 0
|
||||
assert as_dict["uncategorizedRecipes"] >= 0
|
||||
assert as_dict["untaggedRecipes"] >= 0
|
||||
|
@ -45,7 +45,7 @@ def test_admin_about_check_app_config(api_client: TestClient, admin_user: TestUs
|
|||
|
||||
as_dict = response.json()
|
||||
|
||||
# Smoke Test - Test the endpoint returns something thats a the expected shape
|
||||
# Smoke Test - Test the endpoint returns something that's a the expected shape
|
||||
assert as_dict["emailReady"] in [True, False]
|
||||
assert as_dict["ldapReady"] in [True, False]
|
||||
assert as_dict["baseUrlSet"] in [True, False]
|
||||
|
|
|
@ -9,7 +9,7 @@ from tests.utils.fixture_schemas import TestUser
|
|||
|
||||
class Routes:
|
||||
self = "/api/groups/self"
|
||||
memebers = "/api/groups/members"
|
||||
members = "/api/groups/members"
|
||||
permissions = "/api/groups/permissions"
|
||||
|
||||
|
||||
|
@ -25,7 +25,7 @@ def get_permissions_payload(user_id: str, can_manage=None) -> dict:
|
|||
def test_get_group_members(api_client: TestClient, user_tuple: list[TestUser]):
|
||||
usr_1, usr_2 = user_tuple
|
||||
|
||||
response = api_client.get(Routes.memebers, headers=usr_1.token)
|
||||
response = api_client.get(Routes.members, headers=usr_1.token)
|
||||
assert response.status_code == 200
|
||||
|
||||
members = response.json()
|
||||
|
|
|
@ -140,7 +140,7 @@ def test_bulk_export_recipes(api_client: TestClient, unique_user: TestUser, ten_
|
|||
|
||||
assert validate_file_token(response_data["fileToken"]) == Path(export_path)
|
||||
|
||||
# Use Export Token to donwload export
|
||||
# Use Export Token to download export
|
||||
response = api_client.get(f'/api/utils/download?token={response_data["fileToken"]}')
|
||||
|
||||
assert response.status_code == 200
|
||||
|
|
|
@ -41,7 +41,7 @@ def test_user_token_refresh(api_client: TestClient, api_routes: AppRoutes, admin
|
|||
|
||||
def test_user_lockout_after_bad_attemps(api_client: TestClient, unique_user: TestUser, database: AllRepositories):
|
||||
"""
|
||||
if the user has more than 5 bad login attemps the user will be locked out for 4 hours
|
||||
if the user has more than 5 bad login attempts the user will be locked out for 4 hours
|
||||
This only applies if there is a user in the database with the same username
|
||||
"""
|
||||
routes = AppRoutes()
|
||||
|
|
|
@ -39,7 +39,7 @@ test_ingredients = [
|
|||
def test_nlp_parser():
|
||||
models: list[CRFIngredient] = convert_list_to_crf_model([x.input for x in test_ingredients])
|
||||
|
||||
# Itterate over mdoels and test_ingreidnets to gether
|
||||
# Iterate over models and test_ingredients to gather
|
||||
for model, test_ingredient in zip(models, test_ingredients):
|
||||
assert round(float(sum(Fraction(s) for s in model.qty.split())), 3) == pytest.approx(test_ingredient.quantity)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue