From c9c488a9249a96080c79b1bc464646137f52d7f3 Mon Sep 17 00:00:00 2001 From: Roger Labbe Date: Sun, 19 Jun 2016 07:46:24 -0700 Subject: [PATCH] Moved test for gh to subdirectory It wasn't properly finding the import path for reasons I don't understand. But it works now. --- filterpy/gh/{ => tests}/test_gh.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename filterpy/gh/{ => tests}/test_gh.py (98%) diff --git a/filterpy/gh/test_gh.py b/filterpy/gh/tests/test_gh.py similarity index 98% rename from filterpy/gh/test_gh.py rename to filterpy/gh/tests/test_gh.py index fda1585..15e6532 100644 --- a/filterpy/gh/test_gh.py +++ b/filterpy/gh/tests/test_gh.py @@ -126,7 +126,7 @@ def fx(x): plt.plot(zs) -def foo(): +def test_GHFilterOrder(): def fx(x): return 2*x+1 @@ -140,7 +140,6 @@ def fx(x): assert abs(f1.x[0]-f2.x) < 1.e-18 -foo() if __name__ == "__main__": optimal_test() @@ -149,4 +148,6 @@ def fx(x): test_1d_array() test_2d_array() + test_GHFilterOrder() + print('all passed')