mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-27 13:55:19 +00:00
refactor: resolve regression-safe CodeQL code-quality findings (#55531)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -29,12 +29,12 @@ class TestWebsite(ERPNextTestSuite):
|
||||
|
||||
with self.set_user("supplier1@gmail.com"):
|
||||
# checking if data only consist of order assignment of Supplier1
|
||||
self.assertTrue("Supplier1" in [data.supplier for data in get_data()])
|
||||
self.assertIn("Supplier1", [data.supplier for data in get_data()])
|
||||
self.assertFalse([data.supplier for data in get_data() if data.supplier != "Supplier1"])
|
||||
|
||||
with self.set_user("supplier2@gmail.com"):
|
||||
# checking if data only consist of order assignment of Supplier2
|
||||
self.assertTrue("Supplier2" in [data.supplier for data in get_data()])
|
||||
self.assertIn("Supplier2", [data.supplier for data in get_data()])
|
||||
self.assertFalse([data.supplier for data in get_data() if data.supplier != "Supplier2"])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user