Add tests/mock_data/events.json
ADD
tests/mock_data/events.json
+{
+ "type": "activity",
+ "size": 1,
+ "ActivityNotification": [
+ {
+ "event": "ended",
+ "uuid": "e236a6e5-50ea-40b0-8c77-6300a43be5fe",
+ "Activity": {
+ "uuid": "e236a6e5-50ea-40b0-8c77-6300a43be5fe",
+ "type": "library.refresh.items",
+ "cancellable": false,
+ "userID": 1,
+ "title": "Refreshing",
+ "subtitle": "Refreshing media analysis",
+ "progress": 100,
+ "Context": {
+ "accessible": false,
+ "analyzed": false,
+ "exists": false,
+ "key": "/library/metadata/10123",
+ "refreshed": false
+ }
+ }
+ }
+ ]
+}

Add tests/mock_data/events.json