mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Python 3.6 invalid escape sequence deprecation fixes (#11941)
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
This commit is contained in:
parent
cad0bde95b
commit
b4d682ca75
@ -28,7 +28,7 @@ class TestAuroraSensorSetUp(unittest.TestCase):
|
||||
def test_setup_and_initial_state(self, mock_req):
|
||||
"""Test that the component is created and initialized as expected."""
|
||||
uri = re.compile(
|
||||
"http://services\.swpc\.noaa\.gov/text/aurora-nowcast-map\.txt"
|
||||
r"http://services\.swpc\.noaa\.gov/text/aurora-nowcast-map\.txt"
|
||||
)
|
||||
mock_req.get(uri, text=load_fixture('aurora.txt'))
|
||||
|
||||
@ -66,7 +66,7 @@ class TestAuroraSensorSetUp(unittest.TestCase):
|
||||
def test_custom_threshold_works(self, mock_req):
|
||||
"""Test that the config can take a custom forecast threshold."""
|
||||
uri = re.compile(
|
||||
"http://services\.swpc\.noaa\.gov/text/aurora-nowcast-map\.txt"
|
||||
r"http://services\.swpc\.noaa\.gov/text/aurora-nowcast-map\.txt"
|
||||
)
|
||||
mock_req.get(uri, text=load_fixture('aurora.txt'))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user