From f03a94b0f2ba5c3dae4dd5b65ee2e49e51044ecd Mon Sep 17 00:00:00 2001 From: Valera Rozuvan Date: Thu, 27 Mar 2014 20:18:13 +0200 Subject: [PATCH] Update doc string for YouTube stub server. Included information on how to launch the server on its own. EOF --- common/djangoapps/terrain/stubs/youtube.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/common/djangoapps/terrain/stubs/youtube.py b/common/djangoapps/terrain/stubs/youtube.py index 64841dd5c4..cf97284936 100644 --- a/common/djangoapps/terrain/stubs/youtube.py +++ b/common/djangoapps/terrain/stubs/youtube.py @@ -1,5 +1,20 @@ """ Stub implementation of YouTube for acceptance tests. + + +To start this stub server on its own from Vagrant: + +1.) Locally, modify your Vagrantfile so that it contains: + + config.vm.network :forwarded_port, guest: 8031, host: 8031 + +2.) From within Vagrant dev environment do: + + cd common/djangoapps/terrain + python -m stubs.start youtube 8031 + +3.) Locally, try accessing http://localhost:8031/ and see that + you get "Unused url" message inside the browser. """ from .http import StubHttpRequestHandler, StubHttpService