Correctly mock session.protocol flags
This commit is contained in:
parent
e05e9cda2c
commit
0b7100c3cb
2 changed files with 5 additions and 0 deletions
|
|
@ -1045,6 +1045,7 @@ class EvMenu(object):
|
|||
node (str): The formatted node to display.
|
||||
|
||||
"""
|
||||
|
||||
if self._session:
|
||||
screen_width = self._session.protocol_flags.get(
|
||||
"SCREENWIDTH", {0: _MAX_TEXT_WIDTH})[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue