Add more test helpers and integration tests for SyncApp's media sync feature using WebTest's TestApp.

Add test helpers for creating, inspecting and manipulating instances of SyncApp and RestApp.
Add subclasses of Anki's RemoteServer and RemoteMediaServer for communicating with the wrapped SyncApp instance under test.
Add helpers for monkey patching Anki's MediaManager and DB for easier testing.
Add test assets directory.
This commit is contained in:
Christoph Mack
2016-02-29 09:56:28 +01:00
committed by flan
parent cb574aa0a7
commit 573aeece81
8 changed files with 692 additions and 0 deletions

BIN
tests/assets/blue.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 697 B

8
tests/assets/test.conf Normal file
View File

@@ -0,0 +1,8 @@
[sync_app]
host = 127.0.0.1
port = 27701
data_root = ./collections
base_url = /sync/
base_media_url = /msync/
auth_db_path = ./auth.db
session_db_path = ./session.db