mopidy/tests
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
..
audio Merge pull request #1239 from jodal/feature/stream-playlists 2015-07-26 11:48:19 +02:00
backend autopep8: Add space after class signature/docstring 2015-04-03 00:05:26 +02:00
config tests: Add tests for defaults in core schema config 2015-07-25 16:04:39 +02:00
core tests: fix test breakage due to promotion from int to long 2015-08-05 22:38:21 +02:00
data tests: Cleanup find tests to use tempfile all over. 2014-10-15 23:45:27 +02:00
file file: Add todos for missing tests 2015-07-25 11:59:29 +02:00
http tests: Cleanup reset_mock() usage 2015-05-06 21:06:30 +02:00
internal tests: fix test breakage due to promotion from int to long 2015-08-05 22:38:21 +02:00
local Add core config values to relevent test cases. 2015-07-19 23:05:39 -04:00
m3u tests: Fix failing encoding test 2015-07-25 13:15:37 +02:00
models models: Add ValidatedImmutableObject and "revert" ImmutableObject 2015-05-04 23:41:11 +02:00
mpd mpd: PR #1235 tweaks, add changelog 2015-07-26 12:12:15 +02:00
stream stream: Extract first track from playlists 2015-07-26 11:24:39 +02:00
__init__.py tests: fix test breakage due to promotion from int to long 2015-08-05 22:38:21 +02:00
dummy_audio.py autopep8: Add space after class signature/docstring 2015-04-03 00:05:26 +02:00
dummy_backend.py autopep8: Add space after class signature/docstring 2015-04-03 00:05:26 +02:00
dummy_mixer.py Allow 'none' as audio.mixer value 2015-03-10 00:26:22 +01:00
test_commands.py autopep8: Add space after class signature/docstring 2015-04-03 00:05:26 +02:00
test_exceptions.py autopep8: Add space after class signature/docstring 2015-04-03 00:05:26 +02:00
test_ext.py tests: Add tests for getter methods for cache, config and data directories 2015-07-25 18:17:27 +02:00
test_help.py autopep8: Add space after class signature/docstring 2015-04-03 00:05:26 +02:00
test_httpclient.py httpclient: Fix import in tests 2015-05-09 00:52:29 +02:00
test_mixer.py autopep8: Add space after class signature/docstring 2015-04-03 00:05:26 +02:00
test_version.py Merge branch 'v1.0.x' into develop 2015-07-22 18:41:17 +02:00