diff --git a/src/dbt_score/models.py b/src/dbt_score/models.py index c98066f..496dd3a 100644 --- a/src/dbt_score/models.py +++ b/src/dbt_score/models.py @@ -248,7 +248,7 @@ def __init__(self, file_path: Path, select: Iterable[str] | None = None): self._reindex_tests() self._load_models() - if select is not None: + if select: self._select_models(select) if len(self.models) == 0: diff --git a/tests/test_cli.py b/tests/test_cli.py index 499d01d..cb50f19 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -21,6 +21,9 @@ def test_lint_existing_manifest(manifest_path): with patch("dbt_score.cli.Config._load_toml_file"): runner = CliRunner() result = runner.invoke(lint, ["--manifest", manifest_path]) + + assert "model1" in result.output + assert "model2" in result.output assert result.exit_code == 0