aboutsummaryrefslogtreecommitdiff
path: root/gazelle/python/testdata/first_party_file_and_directory_modules/README.md
blob: 2a173b43050655e32c7f45381039f4073d5177b0 (plain)
1
2
3
4
5
6
7
8
9
# First-party file and directory module dependencies

This test case asserts that a `py_library` is generated with the dependencies
pointing to the correct first-party target that contains a Python module file
that was imported directly instead of a directory containing `__init__.py`.

Also, it asserts that the directory with the `__init__.py` file is selected
instead of a module file with same. E.g. `foo/__init__.py` takes precedence over
`foo.py` when `import foo` exists.