aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-02-19 10:06:15 -0800
committerGravatar MarkKoz <[email protected]>2020-02-19 10:06:15 -0800
commit51ce6225e1dce6e909101d5948264615a1e068ea (patch)
tree5136c95ed212f535615d7533e8684ec23e0cc406
parentSync: add confirmation timeout and max diff to config (diff)
API: add comment explaining class attributes
Explain changes caused by 22a55534ef13990815a6f69d361e2a12693075d5.
-rw-r--r--bot/api.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/api.py b/bot/api.py
index d5880ba18..1562c7fce 100644
--- a/bot/api.py
+++ b/bot/api.py
@@ -32,6 +32,8 @@ class ResponseCodeError(ValueError):
class APIClient:
"""Django Site API wrapper."""
+ # These are class attributes so they can be seen when being mocked for tests.
+ # See commit 22a55534ef13990815a6f69d361e2a12693075d5 for details.
session: Optional[aiohttp.ClientSession] = None
loop: asyncio.AbstractEventLoop = None