ulope/pytest-sftpserver

View on GitHub
pytest_sftpserver/sftp/interface.py

Summary

Maintainability
A
35 mins
Test Coverage

Showing 1 of 1 total issue

Function write has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

def write(self, offset, data):
content = self.content_provider.get(self.path)
 
if content is None:
return SFTP_OK if self.content_provider.put(self.path, data) else SFTP_NO_SUCH_FILE
Severity: Minor
Found in pytest_sftpserver/sftp/interface.py - About 35 mins to fix

There are no issues that match your filters.

Category
Status