Skip to content

Commit de7fb2b

Browse files
Fix unit test
1 parent 30b3764 commit de7fb2b

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

internal_filesystem/lib/mpos/net/download_manager.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,10 +688,9 @@ def is_session_active(self):
688688
@staticmethod
689689
def is_network_error(exception):
690690
"""Check if exception is a network error (synchronous)."""
691-
return self._async_class.is_network_error(exception)
691+
return _original_download_manager.is_network_error(exception)
692692

693-
@staticmethod
694-
def get_resume_position(outfile):
693+
def get_resume_position(self, outfile):
695694
"""Get resume position (synchronous)."""
696695
return self._async_class.get_resume_position(outfile)
697696

@@ -708,3 +707,11 @@ def get_resume_position(outfile):
708707

709708
# Replace with smart wrapper
710709
DownloadManager = _DownloadManagerWrapper(_original_download_manager)
710+
711+
# ============================================================================
712+
# Module-level exports for direct import
713+
# ============================================================================
714+
715+
# Export utility functions at module level for convenience
716+
is_network_error = _original_download_manager.is_network_error
717+
get_resume_position = _original_download_manager.get_resume_position

0 commit comments

Comments
 (0)