@@ -1692,7 +1692,13 @@ def mock_add_output_converter(sql_type, converter_func):
16921692
16931693def test_fabric_connection_config_defaults (make_config ):
16941694 """Test Fabric connection config defaults to pyodbc and autocommit=True."""
1695- config = make_config (type = "fabric" , host = "localhost" , check_import = False )
1695+ config = make_config (
1696+ type = "fabric" ,
1697+ host = "localhost" ,
1698+ workspace_id = "test-workspace-id" ,
1699+ tenant_id = "test-tenant-id" ,
1700+ check_import = False ,
1701+ )
16961702 assert isinstance (config , FabricConnectionConfig )
16971703 assert config .driver == "pyodbc"
16981704 assert config .autocommit is True
@@ -1713,6 +1719,8 @@ def test_fabric_connection_config_parameter_validation(make_config):
17131719 trust_server_certificate = True ,
17141720 encrypt = False ,
17151721 odbc_properties = {"Authentication" : "ActiveDirectoryServicePrincipal" },
1722+ workspace_id = "test-workspace-id" ,
1723+ tenant_id = "test-tenant-id" ,
17161724 check_import = False ,
17171725 )
17181726 assert isinstance (config , FabricConnectionConfig )
@@ -1741,6 +1749,8 @@ def test_fabric_pyodbc_connection_string_generation():
17411749 trust_server_certificate = True ,
17421750 encrypt = True ,
17431751 login_timeout = 30 ,
1752+ workspace_id = "test-workspace-id" ,
1753+ tenant_id = "test-tenant-id" ,
17441754 check_import = False ,
17451755 )
17461756
0 commit comments