@@ -156,7 +156,7 @@ def test_redis__repr_standard_client(self):
156156 check = RedisHealthCheck (
157157 client_factory = lambda : RedisClient (host = "myhost" , port = 6379 , db = 2 )
158158 )
159- assert repr (check ) == "Redis(client=RedisClient(host=myhost, db=2) )"
159+ assert repr (check ) == "Redis(db=2, host='myhost' )"
160160
161161 def test_redis__repr_from_url (self ):
162162 """Verify repr includes host and db when client is created via from_url."""
@@ -167,7 +167,7 @@ def test_redis__repr_from_url(self):
167167 "redis://cache.example.com:6379/3"
168168 )
169169 )
170- assert "host=cache.example.com" in repr (check ), (
170+ assert "host=' cache.example.com' " in repr (check ), (
171171 "repr should include the host from the Redis URL"
172172 )
173173 assert "db=3" in repr (check ), "repr should include the db from the Redis URL"
@@ -180,7 +180,7 @@ def test_redis__repr_deprecated_client(self):
180180 check = RedisHealthCheck (
181181 client = RedisClient (host = "oldhost" , port = 6379 , db = 5 )
182182 )
183- assert "host=oldhost" in repr (check ), (
183+ assert "host=' oldhost' " in repr (check ), (
184184 "repr should include the host from the deprecated client"
185185 )
186186 assert "db=5" in repr (check ), (
0 commit comments