Refactor the DummyAvatarService into two services
Review Request #8526 — Created Nov. 7, 2016 and submitted
The
DummyAvatarService
no longer does magic to set whether or not it
should provide high DPI avatars. Instead, we now have the
DummyHighDPIAvatarService
to provide that (and the
DummyAvatarService
will not provide high DPI avatars).
Ran unit tests.
-
I'm not fully understanding why we're using
__call__
for this. Can you walk me through this?Might also be good to be explicit in the docstrings about why this is happening. It's going to be confusing down the road.
-
Summary: |
|
||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
||||||||||||||||||||||||||||||
Diff: |
Revision 2 (+63 -47) |
-
Tool: Pyflakes Processed Files: djblets/avatars/tests.py Tool: PEP8 Style Checker Processed Files: djblets/avatars/tests.py
Description: |
|
---|