mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-16 08:05:00 +00:00
fix(test): incorrect ruff changes
This commit is contained in:
@@ -227,7 +227,8 @@ class TestGrossProfit(FrappeTestCase):
|
||||
"gross_profit_%": -50.0,
|
||||
}
|
||||
gp_entry = [x for x in data if x.parent_invoice == sinv.name]
|
||||
self.assertEqual(gp_entry[0], gp_entry[0] | expected_entry_without_dn)
|
||||
report_output = {k: v for k, v in gp_entry[0].items() if k in expected_entry_without_dn}
|
||||
self.assertEqual(report_output, expected_entry_without_dn)
|
||||
|
||||
# make delivery note
|
||||
dn = make_delivery_note(sinv.name)
|
||||
@@ -255,7 +256,8 @@ class TestGrossProfit(FrappeTestCase):
|
||||
"gross_profit_%": 0.0,
|
||||
}
|
||||
gp_entry = [x for x in data if x.parent_invoice == sinv.name]
|
||||
self.assertEqual(gp_entry[0], gp_entry[0] | expected_entry_with_dn)
|
||||
report_output = {k: v for k, v in gp_entry[0].items() if k in expected_entry_with_dn}
|
||||
self.assertEqual(report_output, expected_entry_with_dn)
|
||||
|
||||
def test_bundled_delivery_note_with_different_warehouses(self):
|
||||
"""
|
||||
@@ -386,7 +388,8 @@ class TestGrossProfit(FrappeTestCase):
|
||||
"gross_profit_%": -25.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_crnote_against_invoice_with_multiple_instances_of_same_item(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user