aboutsummaryrefslogtreecommitdiff
path: root/gazelle/python/testdata/first_party_file_and_directory_modules/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'gazelle/python/testdata/first_party_file_and_directory_modules/README.md')
-rw-r--r--gazelle/python/testdata/first_party_file_and_directory_modules/README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/gazelle/python/testdata/first_party_file_and_directory_modules/README.md b/gazelle/python/testdata/first_party_file_and_directory_modules/README.md
new file mode 100644
index 0000000..2a173b4
--- /dev/null
+++ b/gazelle/python/testdata/first_party_file_and_directory_modules/README.md
@@ -0,0 +1,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.