[WIP] Fix convert_called_station_id command to properly convert field#728
Conversation
…ly due to Exscript telnetlib not supporting context managers Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> Agent-Logs-Url: https://github.com/openwisp/openwisp-radius/sessions/255f0e6a-1df5-4341-8d61-6d47e27d270c Co-authored-by: pandafy <32094433+pandafy@users.noreply.github.com>
nemesifier
left a comment
There was a problem hiding this comment.
Looks good, see my comments below.
| # Mock telnetlib.Telnet to verify it's properly opened and closed | ||
| from unittest.mock import MagicMock | ||
|
|
||
| from Exscript.protocols import telnetlib |
|
|
||
| # Verify that Telnet was instantiated with correct parameters | ||
| mock_telnet_class.assert_called_once_with("127.0.0.1", 7505, timeout=30) | ||
|
|
There was a problem hiding this comment.
let's remove the extra blank lines as usual
| with telnetlib.Telnet(host, port, timeout=TELNET_CONNECTION_TIMEOUT) as tn: | ||
| tn = telnetlib.Telnet(host, port, timeout=TELNET_CONNECTION_TIMEOUT) | ||
| try: | ||
| logger.info( |
There was a problem hiding this comment.
| logger.info( | |
| logger.debug( |
| ) | ||
| finally: | ||
| tn.close() | ||
| logger.info(f"Closed telnet connection to {host}:{port}") |
There was a problem hiding this comment.
| logger.info(f"Closed telnet connection to {host}:{port}") | |
| logger.debug(f"Closed telnet connection to {host}:{port}") |
|
Hi @claude 👋, This is a friendly reminder that this pull request has had no activity for 7 days since changes were requested. We'd love to see this contribution merged! Please take a moment to:
If you're busy or need more time, no worries! Just leave a comment to let us know you're still working on it. Note: within 7 more days, the linked issue will be unassigned to allow other contributors to work on it. Thank you for your contribution! 🙏 |
|
Hi @claude 👋, This pull request has been marked as stale due to 14 days of inactivity after changes were requested. As a result, any linked issues are being unassigned from you so other contributors can pick them up. However, you can still continue working on this PR! If you push new commits or respond to the review feedback:
If you need more time or have questions about the requested changes, please let us know. We're happy to help! 🤝 |
Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.