-
Notifications
You must be signed in to change notification settings - Fork 48
Fix improper use of Requests for file upload #35
Conversation
The data structure prepared by `format_file_params` is supposed to be a list of tuples with a certain structure, not the dict one created currently. See hellosign#34 for details of the issue being addressed here.
Hi Jeteon, Your change passed all of the unit tests, but I'm having trouble making a test that fails on the main branch and passes on your branch. Here is what I have tried: response = client.send_signature_request( However, on both branches I get the files in this order:
I seem to get that order each time on both branches. What am I missing as far as creating a useful test? Thank you. |
Where are you checking for that list? Would you mind adding your current version of the test to the PR? It would seem that both times the order doesn't match the order specified in the requesting code. I admit I should have put more time into writing a test for the repo. I only got so far as testing that it does what I needed in my application. |
I don't yet see a functional test that includes more than one file in the main branch. Am I missing something? |
I didn't add it as a test because I am still trying to understand the issue you are reporting. I need to understand what you consider success and failure for your pull request, then I can make the test. I ran this test manually, outside of the test suite: However, on both branches I get the files in this order: code.pdf Thank you for taking the time to troubleshoot this and to clarify my questions. |
This merge request is failing this test: class TestHSFormat(TestCase):
I'm looking into it. |
Sorry I haven't been more helpful with this up to now. I'll try to take a closer look too and possibly add a test that exposes the original issue in a reproducible way. |
Hi Neo, Running the tests are sort of hard because I have updated them after this pull request and also I added decline to sign. If you send me an email at apisupport@hellosign.com, I can zip those files up and send them to you. Also, maybe we could do a quick call or work on it together with a screenshare. The tests currently require that you have a production account with a test template and the tests do destructive things, so it might not make sense for you to run the tests on your production account. I'm looking into changing this about the tests but currently am trying to prioritize to existing pull requests and reported issues. |
|
Please use the new OpenAPI SDK: https://pypi.org/project/dropbox-sign/ |
The data structure prepared by
format_file_params
is supposed to be a list of tuples with a certain structure, not the dict one created currently. See #34 for details of the issue being addressed here.