Commit a872a75
committed
[16.0][IMP] l10n_br_setup_tests: house the performance test framework here (as suggested in review)
Move the l10n_br performance testing framework out of the business
modules and into l10n_br_setup_tests, so it no longer pollutes
l10n_br_account / l10n_br_sale with test infrastructure unrelated to
those modules' domain. Suggested by @rvalyi in the review of PR #4741.
Moved (history preserved via git mv):
- l10n_br_account/tests/perf_common.py
-> l10n_br_setup_tests/tests/perf_common.py
- l10n_br_account/tests/test_performance.py
-> l10n_br_setup_tests/tests/test_performance_account.py
- l10n_br_sale/tests/test_performance.py
-> l10n_br_setup_tests/tests/test_performance_sale.py
The moved suites still reuse l10n_br_account's AccountMoveBRCommon
(imported via odoo.addons.l10n_br_account.tests.common, which stays in
l10n_br_account) and now import PerfMixin from the local perf_common.
l10n_br_setup_tests gains l10n_br_account and l10n_br_sale as
dependencies so the common test class, the fiscal demo records and the
fiscal sale.order model are available.
Opt-in behaviour is unchanged: both suites keep the
"-standard"/"l10n_br_performance" tags, so they are excluded from the
default test run and executed only with
--test-tags l10n_br_performance.1 parent 38c462e commit a872a75
8 files changed
Lines changed: 12 additions & 5 deletions
File tree
- .github/workflows
- l10n_br_account/tests
- l10n_br_sale/tests
- l10n_br_setup_tests
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
File renamed without changes.
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
l10n_br_sale/tests/test_performance.py renamed to l10n_br_setup_tests/tests/test_performance_sale.py
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments