Philipp Wolfer
182ea65b3f
PICARD-1328: Fix OptimFROG format detection
2018-09-04 08:47:03 +02:00
Philipp Wolfer
4c20e811cf
PICARD-1329: Fix saving iTunNORM tags to ID3
2018-09-04 07:46:14 +02:00
Philipp Wolfer
9c649d97f0
PICARD-1328: Fix loading OptimFROG files
2018-09-03 23:26:53 +02:00
Philipp Wolfer
0e55d039c1
PICARD-1327: Fix loading TAK files
2018-09-03 17:42:12 +02:00
Philipp Wolfer
30895eedd6
FLAC: Preserve waveformatextensible_channel_mask when clearing tags
...
Fixes PICARD-1326
2018-09-03 15:07:57 +02:00
Bob Swift
3af25fdff6
PICARD-1045: Add program update checking
2018-08-29 17:19:08 +02:00
Philipp Wolfer
2fbe8f97a3
PICARD-803: ASCII replacements can cause folder creation
2018-08-27 23:01:57 +02:00
Philipp Wolfer
002cf52dea
Tests: Reduced redundancy in formats tests
2018-08-25 09:34:10 +02:00
Philipp Wolfer
38fa2b0adc
Tests: Settings cleanup is not needed
...
A fresh copy of settings is assigned on setUp
2018-08-25 09:14:59 +02:00
Philipp Wolfer
3c9adf34a0
PICARD-1245: Added tests
2018-08-24 17:31:12 +02:00
Laurent Monin
5329e3592a
Clean up and sort imports using isort
...
Add a config for isort (https://github.com/timothycrosley/isort )
Run isort -rc . and make import style consistent across files
Add a note about `isort` in CONTRIBUTING.md
2018-08-22 08:51:25 +02:00
Antonio Larrosa
2eb01c2063
Add a test that checks move_additional_files work with unicode paths
...
This is to test PICARD-1207
2018-08-08 14:59:33 +05:30
Wieland Hoffmann
60588b6c3e
PICARD-1277 (workaround): translate_caa_type: Return the input if the type is unknown
...
That can happen if a new cover art type is added in MB that Picard doesn't yet
know about. Instead of raising a KeyError (and crashing), just return the raw
type, which is good enough until we have something better to show.
2018-07-03 18:02:27 +02:00
Sambhav Kothari
19940ee8ef
Refactor format tests to remove unsupported tags automatically
2018-02-28 13:57:54 +05:30
Laurent Monin
a678d540dc
Add DSF test
2018-02-26 14:10:24 +01:00
Laurent Monin
374849faef
PICARD-1187: Add DSF file support
2018-02-26 14:08:48 +01:00
Laurent Monin
940b216f09
Drop useless wrapper
2018-02-26 13:33:08 +01:00
Laurent Monin
a8e2d39271
Introduce a simple decorator and reduce code redundancy
2018-02-26 12:48:38 +01:00
Laurent Monin
28bcf6535d
Reduce code redundancy: use addCleanup(), get rid of tearDown()
2018-02-26 12:31:17 +01:00
Laurent Monin
9f8ea36c95
Remove left-over debug code
2018-02-26 12:11:11 +01:00
Laurent Monin
442331cf6c
Wrap common test classes in CommonTests to prevent unittest to pick tests in those
2018-02-26 12:11:11 +01:00
Laurent Monin
6a5ef767d2
Raise SkipTest where appropriate, instead of silently returning
...
- replace `original` with more explicit `testfile`
- build the full path once
- extract extension and store it in a property
2018-02-26 00:26:12 +01:00
Laurent Monin
00ea9375ae
Do not repeat tags declaration, just modify one dict depending on format
...
Provides few methods:
- FormatsTest.setup_tags()
- FormatsTest.set_tags()
- FormatsTest.remove_tags()
2018-02-25 23:52:34 +01:00
Laurent Monin
e2ed569233
Python3 doesn't need to import print_function
...
This is now a standard feature and no longer needs to be imported from __future__.
https://www.python.org/dev/peps/pep-3105/
2018-02-05 14:43:55 +01:00
Laurent Monin
8df1e78af4
Move throttling code to its own file
...
API is modified to use methods to get/set delays, instead of setting global variables
2018-01-29 18:24:56 +01:00
Laurent Monin
90ce834eab
Use Python3 super()
...
https://www.python.org/dev/peps/pep-3135/
https://docs.python.org/3.5/library/functions.html#super
https://rhettinger.wordpress.com/2011/05/26/super-considered-super/
2018-01-26 09:18:59 +01:00
Laurent Monin
7a36f8c5f4
Sort dicts by key so it is easier to find something
2018-01-25 18:40:45 +01:00
Laurent Monin
136e3a9e7a
Remove duplicate key 'artist' in tags dicts
...
This is there since 10 years, appeared with cfe5299a76
2018-01-25 18:34:04 +01:00
Laurent Monin
2f1e58c56e
Remove duplicate key 'album' in tags dicts
...
This is there since 10 years, appeared with cfe5299a76
2018-01-25 18:31:39 +01:00
Wieland Hoffmann
c18ae092ba
Fix length_score and add tests
...
In 2f8496e , 1.0 - ... turned into 0.0. Fix that.
2018-01-18 20:58:32 +01:00
Wieland Hoffmann
8490422384
PICARD-1159: Don't pass filenames as bytes to wave.open
...
wave.open treats everything that's not a str as a file-like object.
encode_filename returns bytes, but they're not file-like.
2017-12-06 19:19:34 +01:00
Sambhav Kothari
b0d412169c
Add null type tests
2017-07-26 16:12:12 +05:30
Sambhav Kothari
844eca9eaa
Fix null type errors and add test data for null types
2017-07-26 16:09:34 +05:30
Laurent Monin
4f328dba79
LabelInfoTest: reduce code redundancy
2017-07-25 15:48:47 +02:00
Laurent Monin
5aa025619e
Fix null catalog-number and/or label cases, add matching tests
2017-07-25 15:41:03 +02:00
Sambhav Kothari
98ae6f777d
Fix windows tests
2017-07-24 23:51:00 +05:30
Sambhav Kothari
0f7c066211
Add API helper tests
2017-07-23 17:17:21 +05:30
Sambhav Kothari
506d59e5c6
PICARD-1119: Fix wrong metadata parsing
...
Fixes https://tickets.metabrainz.org/browse/PICARD-1119
2017-07-22 01:46:53 +05:30
Sambhav Kothari
83e423f0a2
Fix tests with new POST refactoring
2017-07-20 21:34:31 +05:30
Sambhav Kothari
d3edb87f53
Fix WS tests for the new changes
2017-07-20 20:07:46 +05:30
Sambhav Kothari
aaae132e7e
Test browser lookup utils
2017-07-18 16:34:54 +05:30
Sambhav Kothari
9062a69c1b
Add acoustid json parser test
2017-07-18 15:24:34 +05:30
Sambhav Kothari
22586506cc
Fix tests and add test data
2017-07-16 18:33:08 +05:30
Sambhav Kothari
43a33c5f03
Add more test data
2017-07-13 17:04:27 +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
029a6882e1
Add more tests for the webservice
2017-07-13 16:42:57 +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