OCA / pylint-odoo

Odoo plugin for Pylint
http://www.pylint.org
143 stars 168 forks source link

[ADD] test-folder-imported: check if tests folder is imported in init file #310

Closed fernandahf closed 3 years ago

fernandahf commented 3 years ago

Description of the issue/feature this PR addresses:

Currently, the __init__.py file in the root directory of an Odoo module may import the tests folder, e.g. https://github.com/OCA/server-tools/blob/cca5dffd0dec68e1aa4209a8747d4381a97efa89/ir_sequence_standard_default/__init__.py#L6

Current behavior before PR:

Folder test imported in Odoo module does not check.

Desired behavior after PR is merged:

Folder test imported in Odoo module is check.

Fix #293

-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

fernandahf commented 3 years ago

@moylop260, @luisg123v

Could you review this, please?

Regards.

moylop260 commented 3 years ago

Could you check CI error status, please?

fernandahf commented 3 years ago

Could you check CI error status, please?

@moylop260, done.

fernandahf commented 3 years ago

@luisg123v

Could you review again, please?

Regards.

fernandahf commented 3 years ago

@moylop260

Could you review again, please?

Regards.