Stein Magnus Jodal
f655fc7009
ext: Make get_{cache,config,data}_dir() class methods
...
Fixes #1275
2015-09-04 10:20:04 +02:00
Dejan Prokić
5f843100cc
tests: Add tests for getter methods for cache, config and data directories
2015-07-25 18:17:27 +02:00
Dejan Prokić
13133fd919
tests: Make test_ext discoverable
...
Classes in this test didn't have prefix Test
2015-07-25 17:17:13 +02:00
Thomas Adamcik
d630a97bc1
ext: Refactor tests based on review comments
2015-05-12 22:00:31 +02:00
Thomas Adamcik
8b6553ec16
ext: Update validate_extension to validate_extension_data
...
Adds more checks to catch extension errors and importantly tests for exercise
these code paths.
2015-05-11 22:30:50 +02:00
Thomas Adamcik
4566ddd9ae
ext: Add exception logging to extension loading
2015-05-11 21:29:03 +02:00
Thomas Adamcik
8ed9e5f1e0
ext: Catch exceptions in extension helpers
2015-05-11 21:20:37 +02:00
Thomas Adamcik
8434a22c83
ext: Switch to using fixtures for mocking
2015-05-11 20:53:50 +02:00
Thomas Adamcik
5550785146
ext: Wrap extension state in a ExtensionData tuple
...
This allows us to do more of the data loading that might fail safely in the
mopidy.ext module instead of having things spread all over the place.
Note that only minimal changes have been made to __main__ to make things work.
Further refactoring should follow.
2015-05-11 00:33:41 +02:00
Thomas Adamcik
5937cdc3b2
ext: Add tests for validate_extension and handle validate_environment failures
2015-05-10 23:15:13 +02:00
Thomas Adamcik
c4e18f4218
ext: Add ext.load_extensions tests and basic error handling
2015-05-10 23:00:13 +02:00
Thomas Adamcik
f814e945d3
tests: Convert ext test to pytests
2015-05-10 21:49:04 +02:00
Stein Magnus Jodal
c4940cbea2
autopep8: Add space after class signature/docstring
2015-04-03 00:05:26 +02:00
Thomas Adamcik
fa8547c397
tests: Add noqa markers for setUp/tearDown
2014-12-30 00:23:01 +01:00
Stein Magnus Jodal
496142c201
py3: Use absolute imports by default
2014-12-07 20:17:10 +01:00
Stein Magnus Jodal
837fb00fb7
Fail early if extension doesn't implement setup()
...
Fixes #813
2014-08-03 23:13:14 +02:00
Stein Magnus Jodal
30dde4e593
ext: Remove old extension API
...
As far as I know, all extensions except Mopidy-Arcam (not currently
maintained) and Mopidy-VKontakte already use the new API. Both of the
remaining extensions got open pull requests with the needed changes to use the
new API.
2014-02-17 11:44:57 +01:00
Stein Magnus Jodal
c781f77ef3
Rename test files to pattern expected by test runners
2014-01-15 00:01:50 +01:00