deprecate: setting Administrator by test runner

This commit is contained in:
David 2024-11-13 11:09:05 +01:00
parent b20fc4856b
commit 087b26dd59
No known key found for this signature in database
GPG key ID: AB15A6AF1101390D

View file

@ -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()