deprecate: setting Administrator by test runner
This commit is contained in:
parent
b20fc4856b
commit
087b26dd59
1 changed files with 8 additions and 0 deletions
|
|
@ -85,6 +85,14 @@ class ParallelTestRunner:
|
|||
print("running tests from", "/".join(file_info))
|
||||
return
|
||||
|
||||
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")
|
||||
path, filename = file_info
|
||||
module = self.get_module(path, filename)
|
||||
test_suite = unittest.TestSuite()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue