コード例 #1
0
ファイル: test_debug.py プロジェクト: maximest-pierre/WebCore
def test_inline_console_disallowed():
    ctx = Context()
    ctx.request = Request.blank('/')
    con = Console(ctx)

    with pytest.raises(HTTPNotFound):
        con()
コード例 #2
0
ファイル: test_debug.py プロジェクト: marrow/WebCore
def test_inline_console_disallowed():
	ctx = Context()
	ctx.request = Request.blank('/')
	con = Console(ctx)
	
	with pytest.raises(HTTPNotFound):
		con()
コード例 #3
0
ファイル: test_debug.py プロジェクト: maximest-pierre/WebCore
def test_inline_console():
    ctx = Context()
    ctx.request = Request.blank('/')
    ext = DebugExtension()
    ext(ctx, mock_app)

    con = Console(ctx)

    result = con()
    assert 'CONSOLE_MODE = true' in result.text
コード例 #4
0
ファイル: test_debug.py プロジェクト: marrow/WebCore
def test_inline_console():
	ctx = Context()
	ctx.request = Request.blank('/')
	ext = DebugExtension()
	ext(ctx, mock_app)
	
	con = Console(ctx)
	
	result = con()
	assert 'CONSOLE_MODE = true' in result.text