mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-19 23:05:12 +00:00
fix(test): incorrect linter fix from ruff
This commit is contained in:
@@ -428,8 +428,10 @@ class TestGrossProfit(FrappeTestCase):
|
||||
gp_entry = [x for x in data if x.parent_invoice == sinv.name]
|
||||
# Both items of Invoice should have '0' qty
|
||||
self.assertEqual(len(gp_entry), 2)
|
||||
self.assertEqual(gp_entry[0], gp_entry[0] | expected_entry)
|
||||
self.assertEqual(gp_entry[1], gp_entry[1] | expected_entry)
|
||||
report_output = {k: v for k, v in gp_entry[0].items() if k in expected_entry}
|
||||
self.assertEqual(report_output, expected_entry)
|
||||
report_output = {k: v for k, v in gp_entry[1].items() if k in expected_entry}
|
||||
self.assertEqual(report_output, expected_entry)
|
||||
|
||||
def test_standalone_cr_notes(self):
|
||||
"""
|
||||
@@ -465,7 +467,8 @@ class TestGrossProfit(FrappeTestCase):
|
||||
"gross_profit_%": 100.0,
|
||||
}
|
||||
gp_entry = [x for x in data if x.parent_invoice == sinv.name]
|
||||
self.assertEqual(gp_entry[0], gp_entry[0] | expected_entry)
|
||||
report_output = {k: v for k, v in gp_entry[0].items() if k in expected_entry}
|
||||
self.assertEqual(report_output, expected_entry)
|
||||
|
||||
def test_different_rates_in_si_and_dn(self):
|
||||
from erpnext.selling.doctype.sales_order.test_sales_order import make_sales_order
|
||||
@@ -557,7 +560,8 @@ class TestGrossProfit(FrappeTestCase):
|
||||
"gross_profit_%": 12.5,
|
||||
}
|
||||
gp_entry = [x for x in data if x.parent_invoice == sinv.name]
|
||||
self.assertEqual(gp_entry[0], gp_entry[0] | expected_entry)
|
||||
report_output = {k: v for k, v in gp_entry[0].items() if k in expected_entry}
|
||||
self.assertEqual(report_output, expected_entry)
|
||||
|
||||
def test_valuation_rate_without_previous_sle(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user