From 0c49e013334b8802ce65d2741598cade26aeb8d4 Mon Sep 17 00:00:00 2001
From: Martyn Gigg <martyn.gigg@stfc.ac.uk>
Date: Tue, 3 Jun 2014 13:48:15 +0100
Subject: [PATCH] Add global doctest setup code.

Runs the given code before each test is executed.
Refs #9562
---
 Code/Mantid/docs/source/conf.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Code/Mantid/docs/source/conf.py b/Code/Mantid/docs/source/conf.py
index ea20dcc36f4..6752f00f7f5 100644
--- a/Code/Mantid/docs/source/conf.py
+++ b/Code/Mantid/docs/source/conf.py
@@ -49,6 +49,13 @@ release = '0.01'
 # The name of the Pygments (syntax highlighting) style to use.
 pygments_style = 'sphinx'
 
+# -- Options for doctest --------------------------------------------------
+
+# Run this before each test is executed
+doctest_global_setup = """
+from mantid.simpleapi import *
+"""
+
 # -- Options for HTML output ----------------------------------------------
 
 # The theme to use for HTML and HTML Help pages.  See the documentation for
-- 
GitLab