Skip to content

Commit

Permalink
Add test ensuring namespace compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
disrupted committed Jun 27, 2024
1 parent 951cfde commit f87d71a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/api/test_registry.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

import importlib
from pathlib import Path
from types import ModuleType

import pytest
Expand Down Expand Up @@ -36,6 +37,12 @@ class Unrelated:
MODULE = SubComponent.__module__


def test_namespace():
"""Ensure namespace package according to PEP 420."""
assert not Path("kpops/__init__.py").exists()
assert not Path("kpops/components/__init__.py").exists()


@pytest.mark.usefixtures("custom_components")
def test_iter_namespace():
components_module = importlib.import_module("kpops.components")
Expand Down

0 comments on commit f87d71a

Please sign in to comment.