fix: don't show deprecation on a effective no-op (#28552)
This commit is contained in:
parent
4b5cd8e605
commit
e964c11cd6
1 changed files with 8 additions and 7 deletions
|
|
@ -85,14 +85,15 @@ class ParallelTestRunner:
|
|||
print("running tests from", "/".join(file_info))
|
||||
return
|
||||
|
||||
from frappe.deprecation_dumpster import deprecation_warning
|
||||
if frappe.session.user != "Administrator":
|
||||
from frappe.deprecation_dumpster import deprecation_warning
|
||||
|
||||
deprecation_warning(
|
||||
"2024-11-13",
|
||||
"v17",
|
||||
"Setting the test environment user to 'Administrator' by the test runner is deprecated. The UnitTestCase now ensures a consistent user environment on set up and tear down at the class level. ",
|
||||
)
|
||||
frappe.set_user("Administrator")
|
||||
deprecation_warning(
|
||||
"2024-11-13",
|
||||
"v17",
|
||||
"Setting the test environment user to 'Administrator' by the test runner is deprecated. The UnitTestCase now ensures a consistent user environment on set up and tear down at the class level. ",
|
||||
)
|
||||
frappe.set_user("Administrator")
|
||||
path, filename = file_info
|
||||
module = self.get_module(path, filename)
|
||||
from frappe.deprecation_dumpster import compat_preload_test_records_upfront
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue