def can_load_backlog_test(self):
        path = '/Users/michaelishmael/Dev/Projects/baby-flashcard-app/proudction-ui/media'
        workflow = Workflow(path)
        workflow.load()

        self.assertTrue(len(workflow.backlog) > 10)
        self.assertTrue(len(workflow.sounds) > 10)
Beispiel #2
0
def resources(request):
    workflow = Workflow(settings.MEDIA_ROOT)
    workflow.load()
    return HttpResponse(simplejson.dumps(workflow.to_json_dict(), indent=2), content_type="application/json")