Stein Magnus Jodal
0c059b85b1
compat: Replace (int, long) with compat.integer_types
2015-10-29 22:21:48 +01:00
Stein Magnus Jodal
7e2d77ce0e
compat: Replace basestring with compat.string_types
2015-10-29 22:21:19 +01:00
Bjørnar Snoksrud
1eb41aca7d
tests: fix test breakage due to promotion from int to long
...
This fixes #1240 .
In internals/path.py. there is a snippet of code that multiples mtime
for a file with 1000, and then casting it to `int`, to return the number
of milliseconds since epoch (or whatever). This will, however, not
ensure that the result is an `int`.
>>> type(int(2**32))
<type 'long'>
Instead, fix the tests to look for (int, long), and clarify the
implementation.
This bug found on a 32-bit VM :)
2015-08-05 22:38:21 +02:00
Stein Magnus Jodal
c4940cbea2
autopep8: Add space after class signature/docstring
2015-04-03 00:05:26 +02:00
Stein Magnus Jodal
a693993905
flake8: Fix new warnings after flake8 upgrade
2015-02-07 17:11:36 +01:00
Stein Magnus Jodal
4f428b8601
py3: Move compat module out of utils
2014-12-07 21:36:15 +01:00
Stein Magnus Jodal
58527406c1
py3: Use compat.text_type instead of unicode
2014-12-07 20:17:10 +01:00
Stein Magnus Jodal
496142c201
py3: Use absolute imports by default
2014-12-07 20:17:10 +01:00
Stein Magnus Jodal
d6a1e13ed6
tests: Use utf-8 when encoding our test data paths to bytes
2013-06-27 00:25:25 +02:00
Stein Magnus Jodal
52ee456692
tests: Import unittest directly from the stdlib
2013-04-29 19:45:25 +02:00
Stein Magnus Jodal
2d80621b70
tests: Remove unittest2
2013-04-29 19:26:07 +02:00
Thomas Adamcik
160a70e6df
path: Only accept bytes as paths
2013-04-25 21:08:33 +02:00
Stein Magnus Jodal
e92a7628f2
settings: Remove SettingsProxy at mopidy.settings
2013-04-07 00:36:41 +02:00
Stein Magnus Jodal
6acaa490e9
Make all strings unicode by default ( fixes #224 )
2012-11-13 00:18:47 +01:00
Stein Magnus Jodal
ac60bcdf8e
Fix all flake8 warnings in tests ( #211 )
2012-10-16 14:43:31 +02:00
Thomas Adamcik
1985b4af76
Switch all tests over to from tests import unittest, which will be unittest2 on < 2.7 and plain unittest otherwise
2011-07-31 22:21:34 +02:00
Thomas Adamcik
2f1d32ba80
Add IsA helper to tests to provde any_int, any_str and any_unicode
2011-07-12 22:02:50 +02:00
Stein Magnus Jodal
79771d6e2c
Rename data_folder() to path_to_data_dir()
2011-04-07 15:55:03 +02:00
Stein Magnus Jodal
c097af1a83
Fix a bunch of pylint errors/warnings in test suite
2011-01-23 18:39:05 +01:00
Thomas Adamcik
94ef06ac78
Nuke local settings to ensure test consistency
2010-08-18 23:41:13 +02:00
Thomas Adamcik
5e79c8a1f1
Move data folder helper to tests module
2010-04-29 22:49:28 +02:00
Thomas Adamcik
9c8cab684c
Move SkipTests to tests.SkipTest
2010-04-09 08:35:45 +02:00
Thomas Adamcik
d95bb80c10
nosetests captures logging for us
2010-04-06 18:53:46 +02:00
Thomas Adamcik
ef3906c1d6
Setup logger to log to test.log for all tests
2010-04-06 15:00:24 +02:00
Thomas Adamcik
c5e5e9215e
Turn tests into module
2010-02-07 04:48:34 +01:00