File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -695,7 +695,7 @@ def _apply_object(
695
695
):
696
696
self ._maybe_init_project_metadata (project )
697
697
698
- name = name or obj .name if hasattr (obj , "name" ) else None
698
+ name = name or ( obj .name if hasattr (obj , "name" ) else None )
699
699
assert name , f"name needs to be provided for { obj } "
700
700
701
701
with self .engine .connect () as conn :
Original file line number Diff line number Diff line change @@ -551,3 +551,25 @@ def test_apply_data_source(sql_registry):
551
551
assert registry_batch_source == batch_source
552
552
553
553
sql_registry .teardown ()
554
+
555
+
556
+ @pytest .mark .skipif (
557
+ sys .platform == "darwin" and "GITHUB_REF" in os .environ ,
558
+ reason = "does not run on mac github actions" ,
559
+ )
560
+ @pytest .mark .parametrize (
561
+ "sql_registry" ,
562
+ [
563
+ lazy_fixture ("mysql_registry" ),
564
+ lazy_fixture ("pg_registry" ),
565
+ lazy_fixture ("sqlite_registry" ),
566
+ ],
567
+ )
568
+ def test_update_infra (sql_registry ):
569
+ # Create infra object
570
+ project = "project"
571
+ infra = sql_registry .get_infra (project = project )
572
+
573
+ # Should run update infra successfully
574
+ sql_registry .update_infra (infra , project )
575
+ sql_registry .teardown ()
You can’t perform that action at this time.
0 commit comments