mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
hotspots: Add ALWAYS_SEND_ALL_HOTSPOTS in dev_settings.
Replace the local variable SEND_ALL from get_next_hotspots. Add unit test for the same.
This commit is contained in:
committed by
Tim Abbott
parent
a5472ddee7
commit
f29a1918f3
@@ -28,9 +28,10 @@ ALL_HOTSPOTS = {
|
||||
} # type: Dict[str, Dict[str, Text]]
|
||||
|
||||
def get_next_hotspots(user: UserProfile) -> List[Dict[str, object]]:
|
||||
# Only used for manual testing
|
||||
SEND_ALL = False
|
||||
if settings.DEVELOPMENT and SEND_ALL:
|
||||
# For manual testing, it can be convenient to set
|
||||
# ALWAYS_SEND_ALL_HOTSPOTS=True in `zproject/dev_settings.py` to
|
||||
# make it easy to click on all of the hotspots.
|
||||
if settings.ALWAYS_SEND_ALL_HOTSPOTS:
|
||||
return [{
|
||||
'name': hotspot,
|
||||
'title': ALL_HOTSPOTS[hotspot]['title'],
|
||||
|
||||
Reference in New Issue
Block a user