Commit Graph

19 Commits

Author SHA1 Message Date
Stein Magnus Jodal
99d8a2124e Fix new flake8 warnings 2018-03-29 10:21:50 +02:00
Jens Lütjen
92767e49f9 Fix typos and formatting 2016-09-16 21:01:10 +02:00
Jens Luetjen
b55996da6a Changed wording export/restore to save/load 2016-04-02 16:28:04 +02:00
Jens Luetjen
6ee36752bd Test whole save/load state. 2016-04-01 22:16:05 +02:00
Jens Luetjen
6e33bbcadd Replace restore/export with load/save
Rename _restore_state to _load_state
Rename _export_state to _save_state
2016-04-01 19:50:37 +02:00
Jens Luetjen
3251722a28 Rename storage.save() to storage.dump().
The name matches the load/dump in the json library.
Import olny storage from mopidy.internal (not all of mopidy.internal).
2016-03-31 21:55:32 +02:00
Jens Luetjen
d4d2ad80dc Changed name persistant file to 'state.json.gz'
Changed filename from persistent.state to state.json.gz. Now the
file extension matches the content.
2016-03-31 20:24:31 +02:00
Jens Luetjen
3eac589557 Try to restore state only one time.
Delete the persistant file after read. If something
goes wrong during restore, the next start is clean.
2016-02-29 20:47:11 +01:00
Jens Luetjen
9d8034869d Chance type of core.restore_state config value
Change to boolean to simplify the user configuration.
2016-02-06 15:48:43 +01:00
Jens Luetjen
606e87b1bb Make export/restore state internal
- drop filename parameter
- make save_state/load_state internal
- remove save_state/load_state from docu and RPC.
- remove models load/save from docu
- build the config path
- folder for 'core' state files
- move restore_state-to-coverage-translation into a method
2016-01-14 19:56:38 +01:00
Jens Luetjen
e56c39ee78 Add unit tests for export/restore core state
Fix issues shown by test code
2016-01-03 18:29:35 +01:00
Stein Magnus Jodal
9f08bce6cd core: Update test 2015-08-11 10:06:58 +02:00
Stein Magnus Jodal
d8bcd7f273 Rename mopidy.utils to mopidy.internal 2015-05-07 23:15:56 +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
6d6bc4b808 core: Use new mixer API 2014-07-08 01:11:25 +02:00
Stein Magnus Jodal
b754885064 Fix all import order warnings 2014-05-07 20:08:43 +02:00
Stein Magnus Jodal
c781f77ef3 Rename test files to pattern expected by test runners 2014-01-15 00:01:50 +01:00