-
Notifications
You must be signed in to change notification settings - Fork 5
Also raise exceptions from FakeSession. #42
Conversation
Review status: 0 of 2 files reviewed at latest revision, 1 unresolved discussion. site-packages/mlab/disco/simple_session.py, line 98 [r1] (raw file): I'm also uncomfortable with sacrificing clarity in the Could we keep the implementations independent and change `FakeSession's implementation to something like this?
Comments from Reviewable |
Review status: 0 of 2 files reviewed at latest revision, 1 unresolved discussion. site-packages/mlab/disco/simple_session.py, line 98 [r1] (raw file): I think this better preserves the original complexity of both classes, while moving some logic that was previously unnecessarily part of How does it look? Comments from Reviewable |
Reviewed 1 of 2 files at r1, 1 of 1 files at r2. site-packages/mlab/disco/simple_session.py, line 103 [r2] (raw file): site-packages/mlab/disco/simple_session.py, line 121 [r2] (raw file): Comments from Reviewable |
Review status: all files reviewed at latest revision, 2 unresolved discussions, all commit checks successful. site-packages/mlab/disco/simple_session.py, line 103 [r2] (raw file): Changed the error message to simply "Empty result set." site-packages/mlab/disco/simple_session.py, line 121 [r2] (raw file): Comments from Reviewable |
SimpleSession.get
andwalk
now raise exceptions when no results were returned. So,FakeSession
should behave the same way.This PR rearranges some previously private functions to be used by both
SimpleSession
andFakeSession
.This change is