String formatting improvements for tests (#33663)

This commit is contained in:
Franck Nijhof authored and GitHub committed 2020-04-05 00:26:08 +02:00
1 parent 1c25468b21
commit 906385172a
33 files changed
+129 -155

No files matched your search

+1 -1
View File
@@ -156,7 +156,7 @@ class TestDarkSkySetup(unittest.TestCase):
url = "https://api.darksky.net/forecast/{}/{},{}?units=auto".format(
self.key, str(self.lat), str(self.lon)
)
msg = "400 Client Error: Bad Request for url: {}".format(url)
msg = f"400 Client Error: Bad Request for url: {url}"
mock_get_forecast.side_effect = HTTPError(msg)
response = darksky.setup_platform(