Skip to content

Commit cc78d37

Browse files
committed
[FIX] consider-merging-classes-inherited: Fix corner case using jobs
1 parent e0ca599 commit cc78d37

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

testing/resources/test_repo/broken_module/models/model_inhe1.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ def method(self):
1313

1414
class TestModel2(models.Model):
1515
_inherit = 'model.no.duplicated'
16+
17+
18+
class StockWarehouseOrderpoint(models.Model):
19+
_inherit = 'stock.warehouse.orderpoint'

testing/resources/test_repo/broken_module/models/model_inhe2.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,7 @@ def method_1(self):
5050
def method_2(self):
5151
_inherit = 'not-class-attribute'
5252
return _inherit
53+
54+
55+
class Orderpoint(models.Model):
56+
_inherit = "stock.warehouse.orderpoint"

tests/test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"attribute-deprecated": 3,
2323
"attribute-string-redundant": 31,
2424
"bad-builtin-groupby": 2,
25-
"consider-merging-classes-inherited": 2,
25+
"consider-merging-classes-inherited": 3,
2626
"context-overridden": 3,
2727
"development-status-allowed": 1,
2828
"except-pass": 3,

0 commit comments

Comments
 (0)