From 61e178544be5507c948dee37efb04cb2c16c5dfd Mon Sep 17 00:00:00 2001 From: Aleksandr Meshchriakov Date: Mon, 10 Aug 2026 14:40:56 +0200 Subject: [PATCH] fix(organizations): align demo statement signs --- src/organizations/test_companies.py | 10 +++++----- .../apps/organizations/test_test_companies_commands.py | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/organizations/test_companies.py b/src/organizations/test_companies.py index cb2f9d1..b6bfdc2 100644 --- a/src/organizations/test_companies.py +++ b/src/organizations/test_companies.py @@ -883,17 +883,17 @@ class TestCompanyDatasetService: ) current_tax = profit_before_tax * 19 // 100 deferred_tax = profit_before_tax // 100 - income_tax = current_tax + deferred_tax - other_tax_effects = amount(25, 1, 2) - net_profit = profit_before_tax - income_tax - other_tax_effects + income_tax = -current_tax + deferred_tax + other_tax_effects = -amount(25, 1, 2) + net_profit = profit_before_tax + income_tax + other_tax_effects revaluation_result = amount(90, 3, 7) other_operations_result = amount(55, 2, 5) - other_operations_tax = amount(18, 1, 1) + other_operations_tax = -amount(18, 1, 1) comprehensive_result = ( net_profit + revaluation_result + other_operations_result - - other_operations_tax + + other_operations_tax ) basic_eps = max(1, net_profit // 1_000) diluted_eps = max(1, basic_eps - 1) diff --git a/tests/apps/organizations/test_test_companies_commands.py b/tests/apps/organizations/test_test_companies_commands.py index 952e54d..fd374ec 100644 --- a/tests/apps/organizations/test_test_companies_commands.py +++ b/tests/apps/organizations/test_test_companies_commands.py @@ -400,18 +400,18 @@ class TestCompaniesCommandsTest(TestCase): ) self.assertEqual( values[("2", "2410")], - values[("2", "2411")] + values[("2", "2412")], + -values[("2", "2411")] + values[("2", "2412")], ) self.assertEqual( values[("2", "2400")], - values[("2", "2300")] - values[("2", "2410")] - values[("2", "2460")], + values[("2", "2300")] + values[("2", "2410")] + values[("2", "2460")], ) self.assertEqual( values[("2", "2500")], values[("2", "2400")] + values[("2", "2510")] + values[("2", "2520")] - - values[("2", "2530")], + + values[("2", "2530")], ) for previous_year, current_year in zip(