tree: 328fd0a65418e770fdfe9784efbee1b14c798dfa [path history] [tgz]
  1. foo/
  2. one/
  3. undiscoverable/
  4. __main__.py
  5. baz.py
  6. BUILD.in
  7. BUILD.out
  8. foo.py
  9. README.md
  10. test.yaml
  11. WORKSPACE
gazelle/testdata/first_party_file_and_directory_modules/README.md

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.