From b55b53f57116d1abd88bf74d0f3790f44449df29 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 11 2016 07:40:38 +0000 Subject: Add a docstring to reload_pagure --- diff --git a/tests/__init__.py b/tests/__init__.py index b655b78..6aec3f9 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -57,6 +57,13 @@ pagure.LOG.handlers = [] def reload_pagure(config_file=None): + ''' Reload the different component of the pagure app. + + You may want to use this for some tests that require a specific + configuration key to include or not a controller (for example the + old_commit endpoint that's included or not depending on a value in + the configuration file). + ''' # We need to reload pagure as otherwise the configuration file will # not be taken into account