From 417dac0080a8f8699d3d6e15662d94c84a783d59 Mon Sep 17 00:00:00 2001 From: Alan Saul Date: Mon, 11 Mar 2013 13:54:47 +0000 Subject: [PATCH] Adding testing file for examples --- GPy/testing/examples_tests.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 GPy/testing/examples_tests.py diff --git a/GPy/testing/examples_tests.py b/GPy/testing/examples_tests.py new file mode 100644 index 00000000..dd85ea34 --- /dev/null +++ b/GPy/testing/examples_tests.py @@ -0,0 +1,26 @@ +# Copyright (c) 2012, GPy authors (see AUTHORS.txt). +# Licensed under the BSD 3-clause license (see LICENSE.txt) + +import unittest +import numpy as np +import GPy + +class ExamplesTests(unittest.TestCase): + def test_check_model_returned(self): + pass + + def test_model_checkgrads(self): + pass + + def test_all_examples(self): + #Load models + + #Loop through models + for model in models: + + self.assertTrue(m.checkgrad()) + + +if __name__ == "__main__": + print "Running unit tests, please be (very) patient..." + unittest.main()