##// END OF EJS Templates
fix(settings): fixed a case for certain settings that could be quoted inside .ini files
fix(settings): fixed a case for certain settings that could be quoted inside .ini files

File last commit:

r1048:742e21ae python3
r1215:685ad2d3 default
Show More
test_http_performance.py
42 lines | 928 B | text/x-python | PythonLexer
/ vcsserver / tests / test_http_performance.py
packaging: moved tests into the main library itself. This is consistent with how our other projects do it.
r130 """
Tests used to profile the HTTP based implementation.
"""
import pytest
import webtest
from vcsserver.http_main import main
@pytest.fixture
def vcs_app():
stub_settings = {
'dev.use_echo_app': 'true',
'locale': 'en_US.UTF-8',
}
vcsserver: fixed settings maker tests
r1022 stub_global_conf = {
'__file__': ''
}
vcs_app = main(stub_global_conf, **stub_settings)
packaging: moved tests into the main library itself. This is consistent with how our other projects do it.
r130 app = webtest.TestApp(vcs_app)
return app
@pytest.fixture(scope='module')
def data():
one_kb = 'x' * 1024
return one_kb * 1024 * 10
def test_http_app_streaming_with_data(data, repeat, vcs_app):
app = vcs_app
python3: code change for py3 support...
r1048 for x in range(repeat // 10):
packaging: moved tests into the main library itself. This is consistent with how our other projects do it.
r130 response = app.post('/stream/git/', params=data)
assert response.status_code == 200
def test_http_app_streaming_no_data(repeat, vcs_app):
app = vcs_app
python3: code change for py3 support...
r1048 for x in range(repeat // 10):
packaging: moved tests into the main library itself. This is consistent with how our other projects do it.
r130 response = app.post('/stream/git/')
assert response.status_code == 200