Johnny Robeson
330306bbe2
remove bytes casts from object/method resolution code
2016-05-30 23:21:24 -04:00
Johnny Robeson
35c539b5a4
remove b' from various web request respones
2016-05-30 21:30:17 -04:00
Johnny Robeson
cd1f79340f
remove explicit b' from sql query dict key names
2016-05-30 18:50:11 -04:00
Johnny Robeson
c52394c499
fix the rest of b'__main__':
2016-05-30 01:11:37 -04:00
Adrian Sampson
71b9fd785c
Revert "Do __name__ comparison with bytes and not unicode"
...
This reverts commit 9c41c39913 .
That commit used byte strings for the `if __name__ == '__main__'` pattern,
which was necessary when we were doing unicode_literals. But it is wrong on
Python 3, and now that we're liberated from unicode_literals, we need to go
back to native strings for this comparison.
2016-05-29 19:19:59 -07:00
Johnny Robeson
a37a52633b
replace deprecated assertNotEquals() with assertNotEqual()
2016-05-29 04:03:54 -04:00
Johnny Robeson
c330f3abc3
replace deprecated assert_() with assertTrue()
2016-05-29 03:56:39 -04:00
Johnny Robeson
ce8d7bf9f1
remove unittest2 import (py < 2.7)
2016-05-27 23:46:33 -04:00
Markus Unterwaditzer
0fc07c28bc
Stylefixes
2016-05-28 00:26:57 +02:00
Markus Unterwaditzer
1ae6ce04dd
Run python-modernize across the codebase
2016-05-27 23:13:01 +02:00
Johnny Robeson
b99a6acc54
use next() instead of iter.next() throughout
2016-05-27 17:00:40 -04:00
Johnny Robeson
7f41d5c188
use 0o prefix when we want octal
2016-05-26 22:31:55 -04:00
Johnny Robeson
cede0ed466
remove leading 0 when octal is unwanted
2016-05-26 22:31:25 -04:00
Johnny Robeson
5963595f32
Add safe_cast tests for . and 1.0.0
2016-05-26 00:57:16 -04:00
Jack Wilsdon
506f1b7351
Fix tempfile spelling in hidden test
2016-05-06 00:55:29 +01:00
Jack Wilsdon
412bde5de2
Add library to check if a file is hidden
...
- Add `beets.util.hidden` which adds a `is_hidden` function to check
whether or not a file is hidden on the current platform.
- Add tests for `beets.util.hidden`.
2016-05-06 00:15:09 +01:00
Jack Wilsdon
7c9440cf13
Merge master back in to fork
2016-04-28 04:15:02 +01:00
Jack Wilsdon
730e1ef175
Revert change made to ordered enum test
2016-04-28 03:35:17 +01:00
Jack Wilsdon
79d602b2a0
Use correct methods for ImageMagick and PIL info
2016-04-27 20:41:09 +01:00
Jack Wilsdon
b1c58e99ec
Update code to match pep8 naming standards
2016-04-27 20:15:10 +01:00
Guilherme Danno
271f7c8d17
new template path functions: %first{} and %ifdef{} ( #1951 )
...
* New template functions: %first{} and %ifdef{}
* Add documentation
* Add to changelog
2016-04-23 13:59:25 -03:00
wordofglass
ac2f7fe712
Fix the fanarttv source failing when there were images found, but no cover art
2016-04-20 12:59:18 +02:00
Jack Wilsdon
ffa2fdd278
Merge master back in to fork
2016-04-18 19:19:08 +01:00
wordofglass
9e774fdccd
Merge branch 'master' into fetchart_almost_square
2016-04-18 19:00:45 +02:00
Guilherme Danno
019d7cd2e6
fix some typos
2016-04-18 12:36:42 -03:00
Jack Wilsdon
070469e259
Remove unicode_literals from __future__ imports
2016-04-18 16:00:13 +01:00
Jack Wilsdon
af5ce6e7e2
Fix event name collision in tests and update tests
...
- Fix `test_event_X` name collision between tests causing tests to
fail unexpectedly.
- Update tests to match new hook plugin design (i.e. remove shell and
subtitution option testing).
2016-04-18 15:36:25 +01:00
Jack Wilsdon
dd949a9488
Merge master back in to fork
2016-04-18 14:06:45 +01:00
wordofglass
6cbbba7dae
initial work on allowing slightly non-square images in fetchart
2016-04-18 01:47:39 +02:00
wordofglass
8169983074
fix translation of the old remote_priority option for fetchart, add a test
2016-04-17 21:18:31 +02:00
Adrian Sampson
3fb2185925
Merge pull request #1898 from beetbox/flake8-future-import
...
Add __future__ import style checker
2016-04-16 15:24:46 -07:00
wordofglass
0f89f17227
add missing division future imports
2016-04-16 18:33:54 +02:00
wordofglass
9ce10c2fda
Merge branch 'master' into fetchart_unify_sources,
...
i.e. adapt the fanart.tv source
2016-04-16 13:34:46 +02:00
wordofglass
0cfddfaa8a
add missing absolute_import future imports
2016-04-16 02:28:54 +02:00
wordofglass
6b43e1204f
add missing print_function future imports
2016-04-16 01:53:39 +02:00
wordofglass
7bec3b9de5
fanart.tv tests, mostly copied and pasted from the google tests
2016-04-15 14:56:14 +02:00
wordofglass
98d5aa4a13
fetchart: remove unused import
2016-04-14 16:56:45 +02:00
wordofglass
7322e212a4
fetchart: adapt test to earlier config read
2016-04-14 16:49:06 +02:00
wordofglass
de3e91db87
fetchart: fix tests providing album=None
2016-04-14 15:25:10 +02:00
wordofglass
1cc4d11baf
Fetchart: fix tests and fetachart logic
2016-04-13 22:56:18 +02:00
wordofglass
a4994d2bf8
fetchart: fix more tests
2016-04-06 01:36:32 +02:00
wordofglass
bc877a6d7f
fetchart: fix tests (mostly pep8, syntax)
2016-04-06 01:19:44 +02:00
wordofglass
bbc06e9de9
fetchart: Adapt ArtForAlbumTest
2016-04-05 23:24:30 +02:00
wordofglass
206a88caff
fetchart: Adapt ArtImporterTest
2016-04-05 22:43:17 +02:00
wordofglass
4b4a0e8bd3
fetchart: Adapt AAOTest, GoogleImageTest
2016-04-05 21:52:30 +02:00
wordofglass
02892a41aa
fetchart: Adapt CombinedTest
2016-04-05 21:34:58 +02:00
Adrian Sampson
cb498e0772
Fix tests for #1927 fix
2016-04-03 17:50:18 -04:00
wordofglass
31aff68150
fetchart: Adapt FetchImageTest, FSArtTest
2016-03-25 16:25:00 +01:00
Adrian Sampson
eac7d64545
Merge branch 'master' into no_unicode_literals
2016-02-28 15:21:43 -08:00
Adrian Sampson
e54c7eec3d
Standardize __future__ imports without parentheses
...
Since the list is short enough now, we don't need parentheses for the line
wrap. This is a little less ugly.
2016-02-28 15:03:51 -08:00
Adrian Sampson
1478ba734f
__repr__ and __str__ return "native" strings
2016-02-28 14:27:39 -08:00
Adrian Sampson
c16201a795
Keep raw literals for regular expressions
2016-02-28 14:10:11 -08:00
Adrian Sampson
48659c5df4
Fix #1896 (bungled fix to #1895 )
2016-02-28 13:37:01 -08:00
Markus Unterwaditzer
a07b98ad24
Fix leftover literals
2016-02-28 19:21:59 +01:00
Peter Kessen
b6e0696041
Removed unicode_literals from test_ui
...
* nosetests ´test.test_ui´ fails for two tests
2016-02-28 13:47:22 +01:00
Peter Kessen
df7241ecce
Removed unicode_literals from test_importer
2016-02-28 13:37:13 +01:00
Peter Kessen
07a225992d
Removed unicode_literals from test_play
2016-02-28 13:24:13 +01:00
Peter Kessen
3b4bf17d1a
Removed unicode_literals from test_vfs
2016-02-28 13:06:18 +01:00
Peter Kessen
92a9c6ff50
Removed unicode_literals from test_library
2016-02-28 13:04:47 +01:00
Peter Kessen
ad073652c2
Removed unicode_literals from test_thumbnails
2016-02-28 12:50:36 +01:00
Peter Kessen
ccc61a638e
Removed unicode_literals from test_util
2016-02-25 07:53:20 +01:00
Peter Kessen
6ec70d6519
Removed unicode_literals from test_ui_importer
2016-02-25 07:52:52 +01:00
Peter Kessen
b4e7f7c80c
Removed unicode_literals from test_template
2016-02-25 07:44:29 +01:00
Peter Kessen
47e5d15a78
Removed unicode_literals from test_smartplaylist
2016-02-25 07:43:12 +01:00
Peter Kessen
27c6c3d6da
Removed unicode_literals from test_replaygain
2016-02-25 07:38:38 +01:00
Peter Kessen
867dafea91
Removed unicode_literals form test_sort
2016-02-25 07:36:21 +01:00
Peter Kessen
e1890f836e
Removed unicode_literals from test_types_plugin
2016-02-25 07:27:08 +01:00
Peter Kessen
f33d922898
Removed unicode_literals from test_query
2016-02-24 18:24:29 +01:00
Peter Kessen
a3138177e6
Removed unicode_literals from test_spotify
2016-02-24 18:08:23 +01:00
Peter Kessen
be8feedfe6
Removed unicode_literals from test_plugins
2016-02-24 07:49:18 +01:00
Peter Kessen
04e6377c1f
Removed unicode_literals from test_plexupdate
2016-02-24 07:40:08 +01:00
Peter Kessen
a77d3207cf
Removed unicode_literals from test_player
2016-02-24 07:39:52 +01:00
Peter Kessen
945c4e201d
Removed unicode_literals form test_pipeline
2016-02-24 07:36:23 +01:00
Peter Kessen
9fffd26267
Removed unicode_literals from test_permissions
2016-02-24 07:35:11 +01:00
Peter Kessen
495de652a7
Removed unicode_literals from test_mpdstats
2016-02-24 07:33:34 +01:00
Peter Kessen
fe1e8b5687
Removed unicode_literals from test_mediafile_edge
2016-02-24 07:32:10 +01:00
Peter Kessen
6b6600d1dd
Removed unicode_literals from test_zero
2016-02-23 18:37:50 +01:00
Peter Kessen
00a8ffe49b
Removed unicode_literals from test_mediafile
2016-02-23 18:35:14 +01:00
Peter Kessen
2ac27e72a6
Removed unicode_literals from test_mbsync
2016-02-23 18:30:23 +01:00
Peter Kessen
cc50f41c36
Removed unicode_literals from test_mbsubmit
2016-02-23 18:28:38 +01:00
Peter Kessen
955eae46c6
Removed unicode_literals from test_logging
2016-02-23 18:27:30 +01:00
Peter Kessen
7135fac17b
Removed unicode_literals from test_importfeeds
2016-02-23 18:10:08 +01:00
Peter Kessen
a627fd45d5
Removed unicode_literals from test_the
2016-02-23 07:39:21 +01:00
Peter Kessen
5abe1fdd9b
Removed unicode_literals from test_web
2016-02-23 07:34:44 +01:00
Peter Kessen
d3d02e18b9
Removed unicode_literals from test_lastgenere
2016-02-22 16:56:02 +01:00
Peter Kessen
df0d51ea86
Removed unicode_literals from test_keyfinder
2016-02-22 16:53:40 +01:00
Peter Kessen
c39a8ce652
Removed unicode_literals from test_importadded
2016-02-22 16:37:11 +01:00
Peter Kessen
99f6457a8f
Removed unicode_literals from test_ihate
2016-02-22 16:36:52 +01:00
Peter Kessen
e1356be837
Removed unicode_literals from test_ftintitle
2016-02-22 16:34:21 +01:00
Peter Kessen
0fececde4c
Removed unicode_literals from test_files
2016-02-22 16:32:36 +01:00
Peter Kessen
690498e87d
Removed unicode_literals from test_fetchart
2016-02-22 16:30:47 +01:00
Peter Kessen
fc521efb34
Removed unicode_literals from test_embyupdate
2016-02-22 16:28:43 +01:00
Peter Kessen
4d1a02a552
Removed unicode_literals from test_embedart
2016-02-22 09:20:54 +01:00
Peter Kessen
b4d7ad1911
Removed unicode_literals from test_edit
2016-02-22 09:20:41 +01:00
Peter Kessen
59f670a29e
Removed unicode_literals form test_echonest
2016-02-22 09:20:20 +01:00
Peter Kessen
bdaafdb147
Removed unicode_literals from test_dbcore
2016-02-22 09:11:21 +01:00
Peter Kessen
5fda42c838
Removed unicode_literals from test_datequery
2016-02-22 09:08:54 +01:00
Peter Kessen
ad321079f9
Fixed test in test_lyrics
2016-02-22 09:07:12 +01:00
Peter Kessen
14fc530200
Removed unicode_literals from test_convert
2016-02-22 07:47:06 +01:00
Peter Kessen
3b83209620
Removed unicode_literals from test_config_command
2016-02-22 07:45:39 +01:00