@@ -41,21 +41,6 @@ def test_add_to_queue(self, mock_queue_client):
4141
4242 mock_queue_client .send_message .assert_called_once_with ("a message" )
4343
44- def test_message_status_updates_queue (self ):
45- with patch (
46- "manage_breast_screening.notifications.services.queue.QueueClient"
47- ) as queue_client :
48- mock_client = MagicMock ()
49- queue_client .from_connection_string .return_value = mock_client
50-
51- Queue .MessageStatusUpdates ().add ("some data" )
52-
53- queue_client .from_connection_string .assert_called_once_with (
54- "qqq111" , "notifications-message-status-updates"
55- )
56- mock_client .create_queue .assert_called_once ()
57- mock_client .send_message .assert_called_once_with ("some data" )
58-
5944 def test_items_method_receives_messages (self , mock_queue_client ):
6045 mock_queue_client .receive_messages .return_value = ["this" , "that" ]
6146
@@ -99,20 +84,6 @@ def test_queue_initialises_using_managed_identity_credentials(self, monkeypatch)
9984 client_id = "my-mi-id"
10085 )
10186
102- def test_update_queue_prefers_queue_name_from_env (self , monkeypatch ):
103- monkeypatch .setenv ("STATUS_UPDATES_QUEUE_NAME" , "updates" )
104- with patch (
105- "manage_breast_screening.notifications.services.queue.QueueClient"
106- ) as queue_client :
107- mock_client = MagicMock ()
108- queue_client .from_connection_string .return_value = mock_client
109-
110- Queue .MessageStatusUpdates ()
111-
112- queue_client .from_connection_string .assert_called_once_with (
113- "qqq111" , "updates"
114- )
115-
11687 def test_retry_message_batches_queue (self ):
11788 with patch (
11889 "manage_breast_screening.notifications.services.queue.QueueClient"
0 commit comments