File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
sqlmesh/core/linter/rules Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -116,8 +116,8 @@ class NoUnregisteredExternalModels(Rule):
116116 def check_model (self , model : Model ) -> t .Optional [RuleViolation ]:
117117 depends_on = model .depends_on
118118
119- # Ignore external models themselves, because either they are registered
120- # if they are not, they will be caught as referenced in another model.
119+ # Ignore external models themselves, because either they are registered,
120+ # and if they are not, they will be caught as referenced in another model.
121121 if isinstance (model , ExternalModel ):
122122 return None
123123
Original file line number Diff line number Diff line change 66def test_no_unregistered_external_models (tmp_path , copy_to_temp_path ) -> None :
77 """
88 Tests that the linter correctly identifies unregistered external model dependencies.
9-
9+
1010 This test removes the `external_models.yaml` file from the sushi example project,
1111 enables the linter, and verifies that the linter raises a violation for a model
1212 that depends on unregistered external models.
You can’t perform that action at this time.
0 commit comments