All Questions
2 questions with no upvoted or accepted answers
1vote
1answer
314views
Where to create repository instances?
I've several repositories. To make them testable, I add the ORM session in the constructor. class Repository: def __init__(session): self.session = session def save(object): self.session()...
0votes
0answers
86views
Download method of type void vs response
Given a method that is widely used and has a void return type: from somepackage import download_model from somepackage import get_filename def download(name, download_path): response = ...