Skip to content

Dont-Import-Test-Modules

Sourcery rule id: dont-import-test-modules

Description

Don't import test modules.

Match

import test.unit.test_something

Explanation

Don't import test modules.

Tests should be self-contained and don't depend on each other.

If a helper function is used by multiple tests, define it in a helper module, instead of importing one test from the other.