コード例 #1
0
def response(rf, config):
    from jasmine.django.views import JasmineRunner

    request = rf.get("")

    return JasmineRunner.as_view(template_name="runner.html", config=config)(request)
コード例 #2
0
def response(rf, config):
    from jasmine.django.views import JasmineRunner

    request = rf.get("")

    return JasmineRunner.as_view(template_name="runner.html", config=config)(request)
コード例 #3
0
    '',
    url(r'^__spec__/(?P<path>.*)$',
        'django.views.static.serve', {
            'document_root': config.spec_dir(),
        },
        name='jasmine_specs'),
    url(r'^__src__/(?P<path>.*)$',
        'django.views.static.serve', {
            'document_root': config.src_dir(),
        },
        name='jasmine_src'),
    url(r'^__boot__/(?P<path>.*)$',
        'django.views.static.serve', {
            'document_root': Core.boot_dir(),
        },
        name='jasmine_boot'),
    url(r'^__jasmine__/(?P<path>.*)$',
        'django.views.static.serve', {
            'document_root': Core.path(),
        },
        name='jasmine_core'),
    url(
        r'^(?P<path>.*\.png)$',
        'django.views.static.serve',
        {'document_root': favicon_path},
    ),
    url(r'^$',
        JasmineRunner.as_view(template_name="runner.html", config=config),
        name='jasmine_runner'),
)