Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(10944)

Issue 13122043: Fix FLAGS usage in args

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by ekasper
Modified:
10 years, 8 months ago
Reviewers:
Eran
CC:
ctlog-opensource-review_google.com
Visibility:
Public.

Description

Fix FLAGS usage in args

Patch Set 1 #

Total comments: 2

Patch Set 2 : remove client recreation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -2 lines) Patch
M src/python/ct/client/log_client.py View 2 chunks +2 lines, -1 line 0 comments Download
M src/python/ct/client/log_client_test.py View 1 1 chunk +16 lines, -1 line 0 comments Download

Messages

Total messages: 5
ekasper
Passing a FLAGS value in arguments will always bind to the default flag value rather ...
10 years, 8 months ago (2013-08-20 12:43:10 UTC) #1
Eran
The current way (passing in the size from the flag as default) makes more sense. ...
10 years, 8 months ago (2013-08-20 12:45:35 UTC) #2
ekasper
On 2013/08/20 12:45:35, Eran wrote: > The current way (passing in the size from the ...
10 years, 8 months ago (2013-08-20 12:50:46 UTC) #3
Eran
LGTM. https://codereview.appspot.com/13122043/diff/1/src/python/ct/client/log_client_test.py File src/python/ct/client/log_client_test.py (right): https://codereview.appspot.com/13122043/diff/1/src/python/ct/client/log_client_test.py#newcode165 src/python/ct/client/log_client_test.py:165: mock_responder.reset_mock() IMHO a separate test is preferable, since ...
10 years, 8 months ago (2013-08-20 12:52:47 UTC) #4
ekasper
10 years, 8 months ago (2013-08-20 12:55:00 UTC) #5
https://codereview.appspot.com/13122043/diff/1/src/python/ct/client/log_clien...
File src/python/ct/client/log_client_test.py (right):

https://codereview.appspot.com/13122043/diff/1/src/python/ct/client/log_clien...
src/python/ct/client/log_client_test.py:165: mock_responder.reset_mock()
On 2013/08/20 12:52:48, Eran wrote:
> IMHO a separate test is preferable, since you're re-creating the client,
rather
> than do additional asserts on the same client.

Good copy-paste catch. I don't have to recreate the client; resetting call
attributes on the mock is sufficient. So I've removed that instead.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b