@@ -1703,7 +1703,7 @@ def test_tls_config_no_data_provided():
1703
1703
tls_config = TLSConfig (None )
1704
1704
with pytest .raises (
1705
1705
InvalidConfigurationError ,
1706
- match = "Can not enable TLS without ols_config.tls_config.tls_certificate_path" ,
1706
+ match = r "Can not enable TLS without ols_config.tls_config.tls_certificate_path" ,
1707
1707
):
1708
1708
tls_config .validate_yaml (False )
1709
1709
@@ -1718,7 +1718,7 @@ def test_tls_config_no_tls_key_path():
1718
1718
)
1719
1719
with pytest .raises (
1720
1720
InvalidConfigurationError ,
1721
- match = "Can not enable TLS without ols_config.tls_config.tls_key_path" ,
1721
+ match = r "Can not enable TLS without ols_config.tls_config.tls_key_path" ,
1722
1722
):
1723
1723
tls_config .validate_yaml (False )
1724
1724
@@ -3615,7 +3615,7 @@ def test_ols_config_with_non_existing_system_prompt(tmpdir):
3615
3615
"""Test the OLSConfig model with system prompt path specification that does not exist."""
3616
3616
with pytest .raises (
3617
3617
FileNotFoundError ,
3618
- match = "No such file or directory: 'tests/config/non_existing_file.txt'" ,
3618
+ match = r "No such file or directory: 'tests/config/non_existing_file.txt'" ,
3619
3619
):
3620
3620
OLSConfig (
3621
3621
{
@@ -3921,7 +3921,7 @@ def test_missing_lightspeed_id_attribute():
3921
3921
}
3922
3922
]
3923
3923
3924
- with pytest .raises (KeyError , match = "lightspeed id is missing." ):
3924
+ with pytest .raises (KeyError , match = r "lightspeed id is missing." ):
3925
3925
config ._parse_rhdh_lightspeed_config (data )
3926
3926
3927
3927
@@ -3936,7 +3936,7 @@ def test_missing_lightspeed_url_attribute():
3936
3936
"token" : "lightspeed-token" ,
3937
3937
}
3938
3938
]
3939
- with pytest .raises (KeyError , match = "lightspeed url is missing." ):
3939
+ with pytest .raises (KeyError , match = r "lightspeed url is missing." ):
3940
3940
config ._parse_rhdh_lightspeed_config (data )
3941
3941
3942
3942
@@ -3951,7 +3951,7 @@ def test_missing_lightspeed_models_attribute():
3951
3951
"token" : "lightspeed-token" ,
3952
3952
}
3953
3953
]
3954
- with pytest .raises (KeyError , match = "lightspeed models missing." ):
3954
+ with pytest .raises (KeyError , match = r "lightspeed models missing." ):
3955
3955
config ._parse_rhdh_lightspeed_config (data )
3956
3956
3957
3957
@@ -3966,7 +3966,7 @@ def test_missing_lightspeed_token_attribute():
3966
3966
"type" : "lightspeed-type" ,
3967
3967
}
3968
3968
]
3969
- with pytest .raises (KeyError , match = "lightspeed token is missing." ):
3969
+ with pytest .raises (KeyError , match = r "lightspeed token is missing." ):
3970
3970
config ._parse_rhdh_lightspeed_config (data )
3971
3971
3972
3972
0 commit comments