From: 
Subject: Debian changes

The Debian packaging of python-london-tube-status is maintained in git, using a workflow
similar to the one described in dgit-maint-merge(7).
The Debian delta is represented by this one combined patch; there isn't a
patch queue that can be represented as a quilt series.

A detailed breakdown of the changes is available from their canonical
representation -- git commits in the packaging repository.
For example, to see the changes made by the Debian maintainer in the first
upload of upstream version 1.2.3, you could use:

    % git clone https://git.dgit.debian.org/python-london-tube-status
    % cd python-london-tube-status
    % git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'

(If you have dgit, use `dgit clone python-london-tube-status`, rather than plain `git clone`.)

We don't use debian/source/options single-debian-patch because it has bugs.
Therefore, NMUs etc. may nevertheless have made additional patches.

---

diff --git a/tests/test_london_tube_status.py b/tests/test_london_tube_status.py
index 6671fdd..029b372 100644
--- a/tests/test_london_tube_status.py
+++ b/tests/test_london_tube_status.py
@@ -1,8 +1,7 @@
 """
 Test london_tube_stats with pytest.
 """
-import requests_mock
-import json
+import asyncio
 import sys
 import os
 
@@ -23,18 +22,41 @@ VALID_RESPONSE = [
 ]
 
 
+class MockResponse:
+    """Mock aiohttp response."""
+
+    status = 200
+
+    async def __aenter__(self):
+        """Enter the async context manager."""
+        return self
+
+    async def __aexit__(self, exc_type, exc_value, traceback):
+        """Exit the async context manager."""
+
+    async def json(self):
+        """Return mock JSON data."""
+        return VALID_RESPONSE
+
+
+class MockSession:
+    """Mock aiohttp session."""
+
+    def get(self, url):
+        """Return mock response."""
+        assert url == lts.API_URL
+        return MockResponse()
+
+
 def test_tube_data():
     """Test TubeData."""
-    with requests_mock.Mocker() as mock_req:
-        url = lts.API_URL
-        mock_req.get(url, text=json.dumps(VALID_RESPONSE))
-        test_tube_data = lts.TubeData()
-        test_tube_data.update()
-        assert test_tube_data.data["Bakerloo"] == {
-            "Description": "Nothing to report",
-            "State": "Good Service",
-        }
-        assert test_tube_data.data["London Overground"] == {
-            "Description": "Something",
-            "State": "Minor Delays",
-        }
+    test_tube_data = lts.TubeData(MockSession())
+    asyncio.run(test_tube_data.update())
+    assert test_tube_data.data["Bakerloo"] == {
+        "Description": "Nothing to report",
+        "State": "Good Service",
+    }
+    assert test_tube_data.data["London Overground"] == {
+        "Description": "Something",
+        "State": "Minor Delays",
+    }
