diff --git a/tests/test_camera_functions.py b/tests/test_camera_functions.py index 2d815d41..96e4f69f 100644 --- a/tests/test_camera_functions.py +++ b/tests/test_camera_functions.py @@ -95,8 +95,11 @@ async def test_no_thumbnails(self, mock_resp): """Tests that thumbnail is 'None' if none found.""" mock_resp.return_value = "foobar" self.camera.last_record = ["1"] - config = CONFIG | { - "thumbnail": "", + config = { + **CONFIG, + **{ + "thumbnail": "", + }, } self.camera.sync.homescreen = {"devices": []} @@ -124,8 +127,11 @@ async def test_no_thumbnails(self, mock_resp): async def test_no_video_clips(self, mock_resp): """Tests that we still proceed with camera setup with no videos.""" mock_resp.return_value = "foobar" - config = CONFIG | { - "thumbnail": "/foobar", + config = { + **CONFIG, + **{ + "thumbnail": "/foobar", + }, } mock_resp.return_value = mresp.MockResponse({"test": 200}, 200, raw_data="") self.camera.sync.homescreen = {"devices": []} @@ -359,9 +365,12 @@ async def test_save_recent_clips_exception(self, mock_clip, mock_open, mock_resp async def test_missing_keys(self, mock_resp): """Tests missing signal keys.""" - config = CONFIG | { - "signals": {"junk": 1}, - "thumbnail": "", + config = { + **CONFIG, + **{ + "signals": {"junk": 1}, + "thumbnail": "", + }, } self.camera.sync.homescreen = {"devices": []} mock_resp.side_effect = [ diff --git a/tests/test_cameras.py b/tests/test_cameras.py index 0709f61f..e104d7cd 100644 --- a/tests/test_cameras.py +++ b/tests/test_cameras.py @@ -140,8 +140,11 @@ async def test_different_thumb_api(self, mock_resp): async def test_thumb_return_none(self, mock_resp): """Test that a 'None" thumbnail is doesn't break system.""" - config = CONFIG | { - "thumbnail": None, + config = { + **CONFIG, + **{ + "thumbnail": None, + }, } mock_resp.side_effect = [ {"temp": 71}, @@ -156,8 +159,11 @@ async def test_new_thumb_url_returned(self, mock_resp): "/api/v3/media/accounts/9999/networks/5678/" "test/1234/thumbnail/thumbnail.jpg?ts=1357924680&ext=" ) - config = CONFIG | { - "thumbnail": thumb_return, + config = { + **CONFIG, + **{ + "thumbnail": thumb_return, + }, } mock_resp.side_effect = [ {"temp": 71},