Commit Graph
2222 Commits
Author SHA1 Message Date
Gunther Schmidl 1eda0d39e6 better regex for drive letter; hopefully fixed tests for 2.7; added test to show only drive-letter like colons are affected 2020-07-25 22:11:07 +02:00
Gunther Schmidl 0a9a801b05 add unit tests 2020-07-25 21:50:33 +02:00
José AlbornozandJacob Pavlock dc7e433768 Fix thumbnail plugin pathlib bug (#3360)
PathlibURI.uri() would fail if given a path as bytes instead of as string.

Co-authored-by: Jacob Pavlock <jtpavlock@gmail.com>
2020-07-15 21:00:50 -05:00
Jacob Pavlock f2e7b3fdd7 remove references to nose 2020-07-07 15:28:38 -07:00
Jacob Pavlock 25c6843c28 classify integration tests in test_parentwork.py 2020-07-07 15:05:21 -07:00
jtpavlock aedd77317f Merge pull request #3658 from jtpavlock/integration_tests
Add weekly integration test github action
2020-07-06 11:37:46 -05:00
jtpavlock 45abc9ed7a Clean up code and tests for Genius Lyrics plugin backend (#3641)
* clean-up code & add tests for genius lyrics backend

* add genius fetch tests

* organize imports: standard lib -> pip -> local

* check in sample genius lyrics page

* fix mock import

* force utf-8 encoding for opened files

* use io.open to force utf-8 encoding w/ python2.7
2020-07-06 08:41:27 -05:00
Jacob Pavlock 06553cc37c adjust test_lyrics.py to work with integration tests 2020-07-05 21:41:31 -07:00
Jacob Pavlock 17d9477106 tests for applicable genius artist slugging 2020-06-26 19:33:08 -07:00
Mark Trolley 6d41f31309 Rename use_secure to secure and add to changelog 2020-06-08 20:19:19 -04:00
Mark Trolley 22d74a3b8a feat: support secure Plex connections 2020-06-08 18:05:43 -04:00
Jef LeCompte 9f8bd4cd3f style: flake8 linting 2020-05-25 20:06:43 -04:00
Jef LeCompte 0c3201930c feat: added github actions
only working with linux for now. exact replica of travis basically.
should probably try to implement the rest of tox or deprecate some
functionality.
2020-05-25 19:35:15 -04:00
Jef LeCompte 10f589d80a feat: added subsonicupdate tests 2020-05-22 21:23:26 -04:00
stlutz 5d306d6fd9 Remove debugging statement and conform to line length. 2020-05-16 17:48:56 +02:00
stlutz 46143d9762 Remove unnecessary intermediate web request to genius.com when fetching lyrics.
The search results already include the correct song page url, making it superfluous to do another request via the /song api just to get it.
2020-05-16 16:28:17 +02:00
Adrian Sampson 1dcfa03b5b Merge branch 'master' of github.com:beetbox/beets 2020-05-13 08:21:09 -04:00
Adrian Sampson 5db2b4ccaa Fix new flake8 warnings 2020-05-13 08:20:50 -04:00
soergeld 7c71bb87a2 cleaning up, renaming dup_XXInfo() to copy() 2020-05-08 16:32:12 +02:00
soergeld d7ed84646e create method for deepcopy 2020-04-28 14:18:27 +02:00
soergeld ba2b22cac5 try to correct deepcopy 2020-04-28 12:59:52 +02:00
soergeld b39ef0b8f9 better deepcopy, docstring, minor improvements 2020-04-28 12:16:19 +02:00
soergeld eec7994dbe corrected on deepcopy replacement 2020-04-27 16:16:37 +02:00
soergeld 2bc0027adf remove some prints, unused libraries, __setitem__ method 2020-04-27 16:08:47 +02:00
soergeld 048b5c2151 remove need for deepcopy, simplify __init__ 2020-04-27 15:55:12 +02:00
soergeld 14e1b33839 lines too long 2020-04-27 11:44:51 +02:00
soergeld 805f4e801f typo in tests 2020-04-27 11:31:39 +02:00
soergeld f507f04639 reintroduce default arguments, adapt all occurences of TrackInfo and AlbumInfo to the absence of positional arguments 2020-04-27 11:21:13 +02:00
Ashhar Hasan 625e9253c0 Add tests for artist_sort as lyrics search fallback
Adjust doc comment to highlight that artist_sort is used as a fallback
2020-04-19 19:19:07 +05:30
lijacky 9ec0d725e5 Changes given feedback on https://github.com/beetbox/beets/pull/3554 and trimmed sample html 2020-04-17 17:14:21 -04:00
lijacky b7ecf32f28 style changes 2020-04-16 19:06:17 -04:00
lijacky 525202e529 adding genius sample html 2020-04-16 19:06:17 -04:00
lijacky 29d7b80847 Added unit test for null check 2020-04-16 19:06:17 -04:00
x1ppy 19d6dfc8f3 Support extra tags for MusicBrainz queries 2020-03-20 14:13:40 -04:00
Adam Jakab 611659d03c removed value_match and repr tests 2020-03-16 10:16:29 +01:00
Adam Jakab ac1a3851fa typo fix 2020-03-15 19:36:38 +01:00
Adam Jakab ceb901fcca struggling with old python 2020-03-15 19:30:24 +01:00
Adam Jakab 935768d983 fixing repr tests 2020-03-15 19:19:09 +01:00
Adam Jakab 8e68b5ff2e cleaning up 2020-03-15 15:54:01 +01:00
Adam Jakab 532c6d7c82 better repr testing #2 2020-03-15 15:41:32 +01:00
Adam Jakab 3f2f125b09 better repr testing 2020-03-15 15:24:17 +01:00
Adam Jakab d6538e5f0c removed value_match method - not reachable? 2020-03-15 14:57:02 +01:00
Adam Jakab d5a52cbd26 removed unused imports 2020-03-14 21:51:46 +01:00
Adam Jakab fbd1266bc5 simplified condition in test and added changelog entry 2020-03-14 21:30:22 +01:00
Adam Jakab 832c7326af corrected test to account for year and disctotal field now being treated as types.INTEGER 2020-03-02 13:03:18 +01:00
Adam Jakab 5fc4d7c35e - added field_two as type STRING in ModelFixture1
- renamed test test_format_fixed_field to test_format_fixed_field_string
- test_format_fixed_field_string not tests `field_two` with string values
- added new test_format_fixed_field_integer to test field `field_one` as INTEGER
- added new test_format_fixed_field_integer_normalized to test rounding float values
2020-03-02 13:00:15 +01:00
ybnd 63ea17365a Modify patched stdout in test_malformed_output 2020-02-05 09:04:24 +01:00
ybnd c3817a4c06 Implement review comments
* safer version comparison

* regex bytes directly

* handle b'\x08 ...' case

* test_replaygain.py: injected command output should match the type of the actual output
2020-01-30 19:21:53 +01:00
ybnd c1cb78c908 Small fixes in replaygain.Bs1770gainBackend and test_replaygain.py
* Fix unspecified `gain_adjustment` when method defined in config

* Fix difference between dB and LUFS values in case of mismatched `target_level`/`method`:

  ```
  db_to_lufs( target_level <dB> ) - lufs_to_dB( -23 <LUFS> )
  ```

* Ignore single assertion in case of bs1770gain

(cherry picked from commit 2395bf224032c44f1ea5d28e0c63af96a92b96df)
2020-01-30 17:59:57 +01:00
ybnd c78afb1a97 Don't call bs1770gain outside of try statement 2020-01-30 17:02:28 +01:00