From bf65f2b2cfc3e117e0eae4e313a9666a8431cfae Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Fri, 31 Jan 2025 12:05:35 +0000
Subject: [PATCH] TEST: Update tests for new eval routine signature

---
 pyfeeds/tests/test_evaluate.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/pyfeeds/tests/test_evaluate.py b/pyfeeds/tests/test_evaluate.py
index c016e78..4c9b4a0 100644
--- a/pyfeeds/tests/test_evaluate.py
+++ b/pyfeeds/tests/test_evaluate.py
@@ -76,9 +76,9 @@ def test_evalVectorImage():
         nib.Nifti1Image(vecarr1, np.eye(4)).to_filename(fname1)
         nib.Nifti1Image(vecarr2, np.eye(4)).to_filename(fname2)
 
-        assert evaluate.evalVectorImage(pyf, fname1, fname1) == 0
-        assert evaluate.evalVectorImage(pyf, fname2, fname2) == 0
-        assert evaluate.evalVectorImage(pyf, fname1, fname2) != 0
+        assert evaluate.evalVectorImage(fname1, fname1, pyf=pyf) == 0
+        assert evaluate.evalVectorImage(fname2, fname2, pyf=pyf) == 0
+        assert evaluate.evalVectorImage(fname1, fname2, pyf=pyf) != 0
 
 
 def test_evalImage():
@@ -95,6 +95,6 @@ def test_evalImage():
         nib.Nifti1Image(arr1, np.eye(4)).to_filename(fname1)
         nib.Nifti1Image(arr2, np.eye(4)).to_filename(fname2)
 
-        assert evaluate.evalImage(pyf, fname1, fname1) == 0
-        assert evaluate.evalImage(pyf, fname2, fname2) == 0
-        assert evaluate.evalImage(pyf, fname1, fname2) != 0
+        assert evaluate.evalImage(fname1, fname1, pyf=pyf) == 0
+        assert evaluate.evalImage(fname2, fname2, pyf=pyf) == 0
+        assert evaluate.evalImage(fname1, fname2, pyf=pyf) != 0
-- 
GitLab