Show More
@@ -134,7 +134,7 b' def vcsserver_factory(tmpdir_factory):' | |||
|
134 | 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 | 139 | if vcsserver_port is None: |
|
140 | 140 | vcsserver_port = get_available_port() |
@@ -293,7 +293,21 b' def pylons_config(request, tmpdir_factor' | |||
|
293 | 293 | }}, |
|
294 | 294 | ] |
|
295 | 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 | 312 | filename = get_config( |
|
299 | 313 | request.config, option_name=option_name, |
@@ -353,6 +367,7 b' def available_port(available_port_factor' | |||
|
353 | 367 | |
|
354 | 368 | @pytest.fixture(scope='session') |
|
355 | 369 | def pylonsapp(pylons_config, vcsserver, http_environ_session): |
|
370 | print "Using the RhodeCode configuration", pylons_config | |
|
356 | 371 | logging.config.fileConfig( |
|
357 | 372 | pylons_config, disable_existing_loggers=False) |
|
358 | 373 | app = _setup_pylons_environment(pylons_config, http_environ_session) |
General Comments 0
You need to be logged in to leave comments.
Login now