Skip to content

Commit

Permalink
test(cli): add check for missing init files (datahub-project#7378)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal authored Feb 20, 2023
1 parent 1df806d commit 986086a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Empty file.
8 changes: 8 additions & 0 deletions metadata-ingestion/tests/unit/test_packages.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import setuptools


def test_package_list_match_inits():
where = "./src"
package_list = set(setuptools.find_packages(where))
namespace_packages = set(setuptools.find_namespace_packages(where))
assert package_list == namespace_packages, "are you missing a package init file?"

0 comments on commit 986086a

Please sign in to comment.