Show More
@@ -134,7 +134,7 b' def vcsserver_factory(tmpdir_factory):' | |||||
134 | Use this if you need a running vcsserver with a special configuration. |
|
134 | Use this if you need a running vcsserver with a special configuration. | |
135 | """ |
|
135 | """ | |
136 |
|
136 | |||
137 |
def factory(request, use_http= |
|
137 | def factory(request, use_http=True, overrides=(), vcsserver_port=None): | |
138 |
|
138 | |||
139 | if vcsserver_port is None: |
|
139 | if vcsserver_port is None: | |
140 | vcsserver_port = get_available_port() |
|
140 | vcsserver_port = get_available_port() | |
@@ -293,7 +293,21 b' def pylons_config(request, tmpdir_factor' | |||||
293 | }}, |
|
293 | }}, | |
294 | ] |
|
294 | ] | |
295 | if _use_vcs_http_server(request.config): |
|
295 | if _use_vcs_http_server(request.config): | |
296 | overrides.append({'app:main': {'vcs.server.protocol': 'http'}}) |
|
296 | overrides.append({ | |
|
297 | 'app:main': { | |||
|
298 | 'vcs.server.protocol': 'http', | |||
|
299 | 'vcs.scm_app_implementation': 'http', | |||
|
300 | 'vcs.hooks.protocol': 'http', | |||
|
301 | } | |||
|
302 | }) | |||
|
303 | else: | |||
|
304 | overrides.append({ | |||
|
305 | 'app:main': { | |||
|
306 | 'vcs.server.protocol': 'pyro4', | |||
|
307 | 'vcs.scm_app_implementation': 'pyro4', | |||
|
308 | 'vcs.hooks.protocol': 'pyro4', | |||
|
309 | } | |||
|
310 | }) | |||
297 |
|
311 | |||
298 | filename = get_config( |
|
312 | filename = get_config( | |
299 | request.config, option_name=option_name, |
|
313 | request.config, option_name=option_name, | |
@@ -353,6 +367,7 b' def available_port(available_port_factor' | |||||
353 |
|
367 | |||
354 | @pytest.fixture(scope='session') |
|
368 | @pytest.fixture(scope='session') | |
355 | def pylonsapp(pylons_config, vcsserver, http_environ_session): |
|
369 | def pylonsapp(pylons_config, vcsserver, http_environ_session): | |
|
370 | print "Using the RhodeCode configuration", pylons_config | |||
356 | logging.config.fileConfig( |
|
371 | logging.config.fileConfig( | |
357 | pylons_config, disable_existing_loggers=False) |
|
372 | pylons_config, disable_existing_loggers=False) | |
358 | app = _setup_pylons_environment(pylons_config, http_environ_session) |
|
373 | app = _setup_pylons_environment(pylons_config, http_environ_session) |
General Comments 0
You need to be logged in to leave comments.
Login now