Stein Magnus Jodal
c4940cbea2
autopep8: Add space after class signature/docstring
2015-04-03 00:05:26 +02:00
Thomas Adamcik
9ede14f4a1
tests: Convert to using deprecation helpers across the board.
2015-03-30 23:50:54 +02:00
Thomas Adamcik
b31f0c421f
tests: Make tests warning safe
2015-03-26 21:58:44 +01:00
Stein Magnus Jodal
aed91008a3
deps: Add executable path to 'mopidy deps' output
2015-03-14 23:07:59 +01:00
Stein Magnus Jodal
336ef4534a
tests: Use assertEqual instead of assertEquals
2015-03-14 23:01:49 +01:00
Stein Magnus Jodal
df95a988b7
backend: Move DummyBackend into tests package
2015-02-13 01:37:07 +01:00
Stein Magnus Jodal
333bc69777
jsonrpc: Don't use mixer in tests
2015-02-13 01:15:15 +01:00
Stein Magnus Jodal
91bcdddf56
tests: Use core.mixer for volume/mute
2015-02-12 10:31:16 +01:00
Stein Magnus Jodal
a693993905
flake8: Fix new warnings after flake8 upgrade
2015-02-07 17:11:36 +01:00
Thomas Adamcik
fa8547c397
tests: Add noqa markers for setUp/tearDown
2014-12-30 00:23:01 +01:00
Stein Magnus Jodal
6ec35b2d02
Merge branch 'release/v0.19.x' into develop
2014-12-23 22:23:32 +01:00
Stein Magnus Jodal
aa3b8ab5f8
path: Support unicode content when creating file
2014-12-23 22:21:10 +01:00
Thomas Adamcik
2c3217685b
utils: Switch to exceptions.FindError for errors.
2014-12-14 14:08:45 +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
Thomas Adamcik
063c757570
utils/path: Add support for handling sym/hardlink loops
2014-10-15 23:46:08 +02:00
Thomas Adamcik
54a89038d3
utils/path: Don't skip hidden files and folders in generic find code
...
Updates the local scan code to do this instead.
2014-10-15 23:45:49 +02:00
Thomas Adamcik
9b1d20677d
tests: Cleanup find tests to use tempfile all over.
...
This should make it more clear what structure we expect.
2014-10-15 23:45:27 +02:00
Thomas Adamcik
93c0d6cc44
tests: Update no permission test to use tempfile.
2014-10-15 23:45:12 +02:00
Thomas Adamcik
b2419f9814
tests: Add test case for a symlink pointing at itself
2014-10-15 23:45:03 +02:00
Thomas Adamcik
ebb62885cd
util/path: Add basic support for following symlinks
2014-10-15 23:44:48 +02:00
Thomas Adamcik
682af27348
tests: Add test case for file without permissions.
2014-10-15 23:44:41 +02:00
Thomas Adamcik
d219bab0b2
tests: Add test for directory without permission behaviour
2014-10-15 23:44:01 +02:00
Thomas Adamcik
de5fe5ebab
tests: Add test for current find symlink handling
2014-10-15 23:43:13 +02:00
Thomas Adamcik
a8017dfef1
tests: Start adding checks for find errors
2014-10-15 23:42:36 +02:00
Thomas Adamcik
de4bdbec03
tests: Minor cleanup of the existing find tests
2014-10-15 23:42:15 +02:00
Thomas Adamcik
2447e2fa40
util/path: Expose errors to callers of find helper
2014-10-15 23:42:12 +02:00
Stein Magnus Jodal
7856c14b26
tests: Use with stmt for assertRaises
2014-09-25 23:03:35 +02:00
Trygve Aaberge
15597b3c60
tests: Test call order in test_recv_callback_gets_no_data
2014-08-14 12:43:42 +02:00
Trygve Aaberge
265951bf00
network: disable_recv before telling actor to close connection
...
As of d62ad96 , when the connection can't receive more data from the
client, it tells the actor to stop the connection and calls
disable_recv(). The actor operates in it's own thread and when it stops
the connection, disable_recv is being called again from a different
thread. Since the actor is told to stop the connection before
disable_recv is called, the two calls to disable_recv may happen
simultaneously.
This causes a race condition issue where both threads can reach past the
check that recv_id is not None before either of them set it to None. If
one of them set it to None before the other one tries to use it, an
error is raised.
This commit calls disable_recv before telling the actor to stop the
connection. Since disable_recv is a blocking call, this ensures that
recv_id is being set to None before the actor thread begins to stop the
connection.
Fixes #781
2014-08-14 01:58:48 +02:00
Stein Magnus Jodal
b754885064
Fix all import order warnings
2014-05-07 20:08:43 +02:00
Trygve Aaberge
d62ad966af
network: Respond to messages before closing connections
...
This makes a connection tell the actor to stop the connection, instead
of stopping it itself. This is preferable, because other messages sent
to the actor that is not processed yet, may now send data to the client.
E.g. it makes this work:
$ echo status | nc localhost 6600
2014-04-25 06:11:01 +02:00
Stein Magnus Jodal
957036c899
Merge pull request #707 into develop
...
Improve scan performance for remote filesystems
2014-03-02 08:34:54 +01:00
Stein Magnus Jodal
061ff00a39
tests: Don't depend on the order of random sequences
2014-02-28 01:17:53 +01:00
Thomas Adamcik
7386dd30b6
utils: Remove old find_files
2014-02-26 23:53:12 +01:00
Thomas Adamcik
5b7a6065e7
util: Add find_mtimes helper
2014-02-26 23:27:44 +01:00
Stein Magnus Jodal
1ea0978af5
dummy: Move dummy backend back into the mopidy package
2014-01-18 01:38:10 +01:00
Stein Magnus Jodal
c781f77ef3
Rename test files to pattern expected by test runners
2014-01-15 00:01:50 +01:00
Stein Magnus Jodal
d724001f5b
tests: Move mopidy.backends.dummy to tests.dummy_backend
2014-01-11 15:49:22 +01:00
Thomas Adamcik
3bbcb4d121
local: Review comment fixes
2013-11-28 23:20:03 +01:00
Thomas Adamcik
603b57ef3c
utils: Remove find_uris and update find_files
...
- find_uris is no more
- find_files now returns file paths relative to path being searched
- find_files now only works on directories
- find_files tests have been updated to reflect changes
- local scanner has gotten a minimal update to reflect this alteration
2013-11-27 22:50:35 +01:00
Thomas Adamcik
774e629425
config: Fix review comments.
2013-11-23 07:18:57 +01:00
Thomas Adamcik
b22d7bee0b
utils: Add mkdir and content options to get_or_create_file
...
This lets callers control is parent directories are created, and set the
default content of the file.
2013-11-22 07:17:02 +01:00
Stein Magnus Jodal
04d9fa667b
deps: Don't strip last dir from dependency path
2013-11-02 19:25:06 +01:00
Stein Magnus Jodal
033e3ab813
jsonrpc: Test application error responses again
...
The test was modified to not fail after a refactoring, making it not test what
it was intended to test at all. This reverts the changes and updates the test
in another way, keeping the original intention.
2013-10-19 20:53:02 +02:00
Javier Domingo Cansino
cd83d7a0d9
tests: Removing accidental print statement in testcase
2013-08-09 10:08:52 +02:00
Javier Domingo Cansino
11d82056a9
core: Merged tracklist_position to index inside TracklistController
...
docs: Updated changelog.rst
2013-08-09 09:15:54 +02:00
Javier Domingo Cansino
694db515e4
Merge branch 'develop' into tidy-up-core
2013-08-08 13:19:01 +02:00
Javier Domingo Cansino
4db3999371
Cleanup of PlaybackController to be more specific on the current track and
...
moved those functions to TracklistController, which may control all related
to the tracks. Updated tests too.
2013-08-07 10:44:22 +02:00