-
Notifications
You must be signed in to change notification settings - Fork 948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix wrapper cast_to_a1_notation
#1427
Conversation
fix the wrapper method cast_to_a1_notation. It must check that the 4 first arguments are actual ints. Then it should only try to cast the arguments at position 3 and 4 only, not the rest of the list. closes #1055 Signed-off-by: Alexandre Lavigne <lavigne958@gmail.com>
If there were bugs before, and this fixes the bugs. We should have a test that proves it. :) |
You're right I'll add a test. I'll add a call to the method The detail is: it's a bug only on methods with no kwargs and multiple args with no default values. So its quiet specific. |
I am confused about the test. You added a single test that calls Where is the "a1 [...] based coordinate"? |
I noticed we already have a test that calls this method with the a1 notation. So I added the one with coordinates. It makes more sense right to have them both in the test, I'll add it. |
I looked around and found just above a test that adds a named range with A1 coordinates, so I merged the 2 tests into a single one that then deletes the named range then creates the exact same range with index based coordinates. and ensures everything is created the correct way. |
fix the wrapper method cast_to_a1_notation.
It must check that the 4 first arguments are actual ints.
Then it should only try to cast the arguments at position 3 and 4 only, not the rest of the list.
closes #1055