@@ -33,7 +33,7 @@ def test_ok(self, faker: faker.Faker) -> None:
33
33
hosts [host_with_credentials ]["username" ] = "lev"
34
34
hosts [host_with_credentials ]["password" ] = "pass" # noqa: S105
35
35
36
- result = stompman .ConnectionParameters .from_pydantic_multihost_hosts (hosts )
36
+ result = stompman .ConnectionParameters .from_pydantic_multihosturl_hosts (hosts )
37
37
38
38
assert result == [
39
39
stompman .ConnectionParameters ("host1" , 1 , "lev" , "pass" ),
@@ -51,7 +51,7 @@ def test_no_host_or_port_or_both(self, faker: faker.Faker) -> None:
51
51
52
52
for host in cases :
53
53
with pytest .raises (ValueError , match = "must be set" ):
54
- stompman .ConnectionParameters .from_pydantic_multihost_hosts ([host ])
54
+ stompman .ConnectionParameters .from_pydantic_multihosturl_hosts ([host ])
55
55
56
56
def test_no_username (self , faker : faker .Faker ) -> None :
57
57
hosts : list [MultiHostHostLike ] = [
@@ -60,7 +60,7 @@ def test_no_username(self, faker: faker.Faker) -> None:
60
60
]
61
61
62
62
with pytest .raises (ValueError , match = "username must be set" ):
63
- stompman .ConnectionParameters .from_pydantic_multihost_hosts (hosts )
63
+ stompman .ConnectionParameters .from_pydantic_multihosturl_hosts (hosts )
64
64
65
65
def test_no_password (self , faker : faker .Faker ) -> None :
66
66
hosts : list [MultiHostHostLike ] = [
@@ -69,7 +69,7 @@ def test_no_password(self, faker: faker.Faker) -> None:
69
69
]
70
70
71
71
with pytest .raises (ValueError , match = "password must be set" ):
72
- stompman .ConnectionParameters .from_pydantic_multihost_hosts (hosts )
72
+ stompman .ConnectionParameters .from_pydantic_multihosturl_hosts (hosts )
73
73
74
74
def test_no_credentials (self , faker : faker .Faker ) -> None :
75
75
cases : list [MultiHostHostLike ] = [
@@ -79,7 +79,7 @@ def test_no_credentials(self, faker: faker.Faker) -> None:
79
79
80
80
for host in cases :
81
81
with pytest .raises (ValueError , match = "username and password must be set" ):
82
- stompman .ConnectionParameters .from_pydantic_multihost_hosts ([host ])
82
+ stompman .ConnectionParameters .from_pydantic_multihosturl_hosts ([host ])
83
83
84
84
def test_multiple_credentials (self , faker : faker .Faker ) -> None :
85
85
hosts : list [MultiHostHostLike ] = [
@@ -89,4 +89,4 @@ def test_multiple_credentials(self, faker: faker.Faker) -> None:
89
89
]
90
90
91
91
with pytest .raises (ValueError , match = "only one username-password pair must be set" ):
92
- stompman .ConnectionParameters .from_pydantic_multihost_hosts (hosts )
92
+ stompman .ConnectionParameters .from_pydantic_multihosturl_hosts (hosts )
0 commit comments