Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add test
Signed-off-by: hao-affirm <104030690+hao-affirm@users.noreply.github.com>
  • Loading branch information
hao-affirm committed Aug 17, 2022
commit 513e16a5d2a4b7f737250080f2effaccbc9f29fb
21 changes: 21 additions & 0 deletions sdk/python/tests/unit/test_sql_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,3 +551,24 @@ def test_apply_data_source(sql_registry):
assert registry_batch_source == batch_source

sql_registry.teardown()

@pytest.mark.skipif(
sys.platform == "darwin" and "GITHUB_REF" in os.environ,
reason="does not run on mac github actions",
)
@pytest.mark.parametrize(
"sql_registry",
[
lazy_fixture("mysql_registry"),
lazy_fixture("pg_registry"),
lazy_fixture("sqlite_registry"),
],
)
def test_update_infra(sql_registry):
# Create infra object
project = "project"
infra = sql_registry.get_infra(project=project)

# Should succuessfully run update infra
sql_registry.update_infra(infra, project)
sql_registry.teardown()