You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mitogen/tests/data/importer/scanning
Alex Willmer 2fd88298ae tests: Improve master_test.ScanCodeImportsTest coverage
This covers existing behaviours of `mitogen.master.scan_code_imports()` some
of which are relied on, some not, but regardless weren't tested. Notably
- Explicit relative imports return level > 0
- Imports inside `class` and `def` are excluded
- Imports inside other blocks are included
- Python 3.x prunes impossible if/else branches (previously unknown)

It also
- Decouples the test results from the implementation details of the unit test.
- Fixes a missing import
- Fixes at least one Python 2.4 incompatibility (use of with block)
4 months ago
..
defaults.py tests: Improve master_test.ScanCodeImportsTest coverage 4 months ago
explicit_relative.py tests: Improve master_test.ScanCodeImportsTest coverage 4 months ago
has_absolute_import.py tests: Improve master_test.ScanCodeImportsTest coverage 4 months ago
scoped_class.py tests: Improve master_test.ScanCodeImportsTest coverage 4 months ago
scoped_function.py tests: Improve master_test.ScanCodeImportsTest coverage 4 months ago
scoped_if_else.py tests: Improve master_test.ScanCodeImportsTest coverage 4 months ago
scoped_try_except.py tests: Improve master_test.ScanCodeImportsTest coverage 4 months ago