Merge pull request #24500 from barredterra/fix-typos

This commit is contained in:
Raffael Meyer 2024-01-24 03:01:50 +01:00 committed by GitHub
commit 4cc89ae42b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 11 additions and 11 deletions

View file

@ -66,6 +66,6 @@ bench --site test_site reinstall --yes
if [ "$TYPE" == "server" ]
then
# wait till assets are built succesfully
# wait till assets are built successfully
wait $build_pid
fi

View file

@ -41,7 +41,7 @@ const can_export = (frm) => {
if (!doctype) {
frappe.msgprint(__("Please select the Document Type."));
} else if (!parent_multicheck_options.length) {
frappe.msgprint(__("Atleast one field of Parent Document Type is mandatory"));
frappe.msgprint(__("At least one field of Parent Document Type is mandatory"));
} else {
is_valid_form = true;
}

View file

@ -40,8 +40,8 @@ class TestNamingSeries(FrappeTestCase):
def get_valid_serieses(self):
VALID_SERIES = ["SINV-", "SI-.{field}.", "SI-#.###", ""]
exisiting_series = self.dns.get_transactions_and_prefixes()["prefixes"]
return VALID_SERIES + exisiting_series
existing_series = self.dns.get_transactions_and_prefixes()["prefixes"]
return VALID_SERIES + existing_series
def test_naming_preview(self):
self.dns.transaction_type = self.ns_doctype

View file

@ -121,7 +121,7 @@ frappe.listview_settings["User Permission"] = {
callback: function (r) {
if (r.message === 1) {
frappe.show_alert({
message: __("User Permissions created sucessfully"),
message: __("User Permissions created successfully"),
indicator: "blue",
});
} else {

View file

@ -438,7 +438,7 @@ class LDAP_TestCase:
for user_role in updated_user_roles: # match each users role mapped to ldap groups
self.assertTrue(
role_to_group_map[user_role] in test_user_data[test_user],
f"during sync_roles(), the user was given role {user_role} which should not have occured",
f"during sync_roles(), the user was given role {user_role} which should not have occurred",
)
@mock_ldap_connection

View file

@ -319,8 +319,8 @@ class TestNaming(FrappeTestCase):
def test_naming_series_validation(self):
dns = frappe.get_doc("Document Naming Settings")
exisiting_series = dns.get_transactions_and_prefixes()["prefixes"]
valid = ["SINV-", "SI-.{field}.", "SI-#.###", ""] + exisiting_series
existing_series = dns.get_transactions_and_prefixes()["prefixes"]
valid = ["SINV-", "SI-.{field}.", "SI-#.###", ""] + existing_series
invalid = ["$INV-", r"WINDOWS\NAMING"]
for series in valid:

View file

@ -226,7 +226,7 @@ def _restore_thread_locals(flags):
@contextmanager
def change_settings(doctype, settings_dict=None, /, **settings):
"""A context manager to ensure that settings are changed before running
function and restored after running it regardless of exceptions occured.
function and restored after running it regardless of exceptions occurred.
This is useful in tests where you want to make changes in a function but
don't retain those changes.
import and use as decorator to cover full function or using `with` statement.

View file

@ -54,7 +54,7 @@ def pdf_body_html(template, args, **kwargs):
def _guess_template_error_line_number(template) -> int | None:
"""Guess line on which exception occured from current traceback."""
"""Guess line on which exception occurred from current traceback."""
with contextlib.suppress(Exception):
import sys
import traceback

View file

@ -61,7 +61,7 @@ frappe.ui.form.on("Web Form", {
if (!frm.doc.web_form_fields) {
frm.scroll_to_field("web_form_fields");
frappe.throw(__("Atleast one field is required in Web Form Fields Table"));
frappe.throw(__("At least one field is required in Web Form Fields Table"));
}
let page_break_count = frm.doc.web_form_fields.filter(