-
Notifications
You must be signed in to change notification settings - Fork 7
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
Post support - Bug fix! #12
Conversation
Now on 400 status page (when occurs an error using REST server) I put the server error message (if exists) in exception.
Reading content type with json loads help dealing with data and debug
Using 4 spaces (as suggested by Guido Van Rossum) instead of tabs to indent code
Where json returns nested dictionaries, I can't check for equality using assertDictEqual, or by using collections Counts object: values can be lists with different order, so I need do sort them and check for equality with a custom method
Now extra parameters enter as url parameters in POST request as GET request. All POST methods have a 'post_parameters' attrib which is used to send data as a POST request. All failed POST tests where resolved
Now methods exclusive of ensemblgenome are defined in ensemblgenome
Sometimes ensembl REST server has problem and my tests may fail
Cool, thanks for your contribution. Will have a look over this asap today. |
All merged. Thanks for the contribution. Will update the pypi version asap. |
Thank you. I think I will add some little enhancements (I'm thinking to modify the rate request when the remaining requests drop down, for instance when an user submit multiple clients at the same time). When I am ready, I will do another pull request. Regards, Paolo |
Hi,
I made some changes and updated some methods in pyEnsemblRest libraries. Brifely, I have:
nosetests --with-coverage --cover-package=ensemblrest --cover-erase
(as Travis CI does)python setup.py test
python -m unittest discover -s test/
There are some test that fails when Ensembl has transient problems. If I understand why, I can request an help to ensembl developer list. For now, nosetest return status 0 if such test fail. If you like such modifications, you should consider to submit this package to pypi since last uploaded version is very old.
Regards,
Paolo