Sambhav Kothari
e35eff88be
Fix bug while adding secondary release nodes
2017-07-16 18:33:08 +05:30
Sambhav Kothari
c4806c260b
Switch AcoustID API to json
2017-07-16 18:33:08 +05:30
Sambhav Kothari
ae9eb500b5
Add a json parser
2017-07-16 18:33:08 +05:30
Sambhav Kothari
3f2685a30f
Move the default WS calls to json
2017-07-16 18:33:08 +05:30
Laurent Monin
a90d679187
Merge pull request #759 from samj1912/mbjson
...
Add helper functions for the JSON MB API
2017-07-13 13:49:53 +02:00
Sambhav Kothari
43a33c5f03
Add more test data
2017-07-13 17:04:27 +05:30
Sambhav Kothari
a3254f3291
Remove duplicacy
2017-07-13 16:58:12 +05:30
Sambhav Kothari
c694872d25
Clean up and refactor mbjson test
2017-07-13 16:58:12 +05:30
Sambhav Kothari
ee8a56b48d
Add tests for mbjson
2017-07-13 16:58:12 +05:30
Sambhav Kothari
21d4432096
Fix MB-JSON erronous code
2017-07-13 16:58:12 +05:30
Sambhav Kothari
ea965f7f76
Add helper functions for the JSON MB API
2017-07-13 16:58:12 +05:30
Laurent Monin
0edc75f5ba
Merge pull request #757 from samj1912/wstests
...
Add more tests for the webservice
2017-07-13 13:26:24 +02:00
Sambhav Kothari
029a6882e1
Add more tests for the webservice
2017-07-13 16:42:57 +05:30
Laurent Monin
a9d357f52e
Merge pull request #756 from samj1912/wsref
...
Fix variable names and error handling in WebService module
2017-07-13 13:11:41 +02:00
Sambhav Kothari
31c63efe5e
Fix error handling
2017-07-13 16:34:09 +05:30
Sambhav Kothari
22c307693f
Fix variable names and error handling in WebService module
2017-07-12 00:51:10 +05:30
samj1912
970da777a0
Merge pull request #755 from mineo/unbreak-tests-mock
...
Use unittest.mock instead of mock
2017-07-11 01:03:02 +05:30
Wieland Hoffmann
452a78aaf6
Don't use assert_called
...
It's only available in Python 3.6+
2017-07-10 20:34:16 +02:00
Wieland Hoffmann
690e385255
Use unittest.mock instead of mock
...
mock is not part of the standard library, only unittest.mock is.
2017-07-10 20:26:35 +02:00
Laurent Monin
333b249707
Merge pull request #753 from samj1912/wsref
...
Refactor the webservice code
2017-07-10 13:07:32 +02:00
Sambhav Kothari
9df404172a
Add more tests for WebService
2017-07-10 15:58:49 +05:30
samj1912
d71fb8d57a
Merge pull request #754 from scop/spelling
...
Spelling fixes
2017-07-10 01:30:08 +05:30
Ville Skyttä
ea0bd878b5
Spelling fixes
2017-07-09 22:16:48 +03:00
Sambhav Kothari
6145b0dd67
Fix imports
2017-07-09 21:49:43 +05:30
Sambhav Kothari
dcaa3f4e84
Add basic code to test Webservice
2017-07-09 21:37:52 +05:30
Sambhav Kothari
0ef8fd0f05
Move API constants and add Unknown parser error
2017-07-09 17:44:35 +05:30
Sambhav Kothari
181d04e32e
Refactor the webservice code to allow hooking of response parsers
2017-07-09 14:04:33 +05:30
Sambhav Kothari
c469531797
Rename variables appropriately and add exception on improper response parser
2017-07-08 22:37:22 +05:30
Sambhav Kothari
ad9647374d
Refactor code for api helpers
2017-07-08 22:28:11 +05:30
Sambhav Kothari
ee97c4e73a
Fix copy errors
2017-06-24 17:24:40 +05:30
Sambhav Kothari
d5d31d52bf
Add file header
2017-06-24 16:47:23 +05:30
Sambhav Kothari
d9f5a226f6
Fix codacy errors and style issues
2017-06-24 16:38:04 +05:30
Sambhav Kothari
04a987be1d
Remove unexpected argument from post api helper
2017-06-24 16:16:12 +05:30
Sambhav Kothari
6ba3d13d84
Fix erronous code: Return data from api functions
2017-06-24 16:08:43 +05:30
Sambhav Kothari
d5287b48eb
Update the refactored webservice changes in other files
2017-06-24 15:58:09 +05:30
Sambhav Kothari
2f3cdbae44
Refactor webservice code
2017-06-24 15:57:42 +05:30
Wieland Hoffmann
c488d1784c
Merge pull request #752 from mineo/shutil-copystat
...
_patched_shutil_copystat: Support the follow_symlinks keyword argument
2017-06-08 22:43:51 +02:00
Wieland Hoffmann
e1508b9b8e
Merge branch 'master' into shutil-copystat
2017-06-08 22:38:08 +02:00
Wieland Hoffmann
d77be045e6
_patched_shutil_copystat: Support the follow_symlinks keyword argument
...
shutil.copystat supports it and there's some code called by Picard (for example
when trying to install plugins) that passes the argument. Support it to fix
crashes in those cases.
2017-06-07 20:24:19 +02:00
samj1912
70dc9c7787
Merge pull request #751 from mineo/picard-1106
...
PICARD-1106: Discard the second return value of QFileDialog.getOpenFileNames
2017-06-07 23:54:08 +05:30
Wieland Hoffmann
6c0f18b04d
PICARD-1106: Discard the second return value of QFileDialog.getOpenFileNames
...
getOpenFileNames was previously called getOpenFileNamesAndFilter (see [0]) and
returns a tuple (filenames, filter). Since we're not interested in the filter,
discard it.
This is similar to other fixes already done for QFileDialogs in mainwindow.py
and fingerprinting.py.
[0] http://pyqt.sourceforge.net/Docs/PyQt5/pyqt4_differences.html#qfiledialog
2017-06-07 20:01:35 +02:00
Wieland Hoffmann
5d71f9d749
_patched_shutil_copystat: Add a working URL for the bug this fixes
2017-06-07 19:49:26 +02:00
Laurent Monin
dbf05b2631
Merge pull request #750 from mineo/PICARD-1105
...
PICARD-1105: Use QItemSelectionModel from QtCore
2017-06-06 20:29:42 +02:00
Wieland Hoffmann
c7cf905f6e
PICARD-1105: Use QItemSelectionModel from QtCore
...
It has been moved there from QtWidgets
2017-06-06 20:15:45 +02:00
samj1912
ab70e18b4e
Merge pull request #749 from samj1912/gsettings
...
PICARD-1100: Remove deprecated gconf and move to gsettings
2017-06-01 08:02:14 +05:30
Sambhav Kothari
0d6b169980
PICARD-1100: Remove deprecated gconf and move to gsettings
...
Solves https://tickets.metabrainz.org/projects/PICARD/issues/PICARD-1100
2017-05-31 22:39:20 +05:30
Laurent Monin
9c938ee7b0
Merge pull request #743 from mineo/rm-docker
...
Remove Dockerfile
2017-05-28 12:42:55 +02:00
samj1912
7fe80411a3
Merge pull request #746 from samj1912/revert_pypi
...
Revert pypi_dev related changes
2017-05-25 10:19:12 +05:30
Sambhav Kothari
176d0f958e
Revert pypi_dev related changes
2017-05-24 23:01:26 +05:30
samj1912
bdd4ce2e3f
Merge pull request #745 from mineo/readme-travis-link
...
Add the link to the test results to the travis badge
2017-05-21 23:38:46 +05:30