Laurent Monin
14ce07756e
Update Copyright headers, with the help of fix-headers.py script
2021-11-10 21:38:54 +01:00
Laurent Monin
54ba988666
Test _get_additional_files_moves()
2021-11-09 23:15:23 +01:00
Laurent Monin
32032de3c2
Move settings from module level to class level, as it is only used there
2021-11-09 22:32:28 +01:00
Laurent Monin
0651a7c34b
Simplify test_filesystem
...
- try to make it a bit more readable
- move prepare_files() outside test class, so it can easily be re-used
- use name of files directly
- split files dict in two: src & dst
2021-11-09 22:27:13 +01:00
Philipp Wolfer
a66b2ad779
PICARD-2324: Run .wvc rename code only if rename_files or move_files are set
2021-11-09 11:02:34 +01:00
Philipp Wolfer
d8406b5159
PICARD-2324: Move .wvc files before moving additional files
2021-11-09 11:02:34 +01:00
Philipp Wolfer
c0e6243a13
PICARD-1926: Adjust test cases for new config structure
2020-12-25 12:37:15 +01:00
Laurent Monin
6b5e852a60
Run fix-header on *.py
2020-02-24 10:25:09 +01:00
Laurent Monin
498c8eab1b
Add mktmpdir method to PicardTestCase, and use it more widely
2020-02-08 18:04:39 +01:00
Laurent Monin
b7389a6445
Tests: ensure temporary directories and files are removed after tests
...
- QSettings object needs special care, as file was re-created on exit
- Append a cleanup function as soon as possible to ensure temporary dirs & files are removed in any case
- prefer addCleanup() over tearDown(), keeping creation and cleanup together
2020-02-08 18:04:39 +01:00
Philipp Wolfer
dc0ec84401
isort: Consistently use two blank lines after import
2019-04-04 08:35:23 +02:00
Philipp Wolfer
dd4da2aa47
Updated isort config to put test imports in separate section
2019-04-04 08:32:22 +02:00
Philipp Wolfer
05fc98c64a
Run isort over all files
2019-04-03 21:19:12 +02:00
Laurent Monin
9df54c1610
Introduce _assertFile()/_assertNoFile() and reduce redundancy a bit more
2019-03-05 11:03:23 +01:00
Laurent Monin
549800aa0a
Simplify even more
2019-03-05 10:54:42 +01:00
Laurent Monin
48206692de
Reduce code redundancy, introducing _move_additional_files(files)
2019-03-05 10:23:51 +01:00
Laurent Monin
5fa087dde3
Use a dict to store filepaths
2019-03-05 10:17:58 +01:00
Laurent Monin
bd7b471416
Test File.move_additional_files() for hidden files cases
...
In case patterns start with a dot we don't ignore hidden files
It was implemented in https://github.com/metabrainz/picard/pull/519
2019-03-04 21:48:07 +01:00
Wieland Hoffmann
e624aa121c
Make PicardTestCase the parent class of all tests
...
This brings the faketagger and, more importantly, settings reset to all of them.
2018-10-23 17:32:50 +02:00
Wieland Hoffmann
f01f9299a9
Extract setting up a FakeTagger into a PicardTestCase class
2018-10-23 17:32:50 +02:00
Philipp Wolfer
82d5c0ffe1
PICARD-1346: Added unit test
2018-09-19 21:25:26 +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