From 43f92d999c74e14eb2fb5cb6a5bcbe9436a3b9d9 Mon Sep 17 00:00:00 2001 From: Scott MacLachlan Date: Sun, 1 Oct 2023 15:45:16 -0230 Subject: [PATCH] Fixing paths? --- tests/test_mymath.py | 4 ++-- tests/test_mymath2.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_mymath.py b/tests/test_mymath.py index bcc8e32..0d2d038 100644 --- a/tests/test_mymath.py +++ b/tests/test_mymath.py @@ -1,6 +1,6 @@ import pytest import math as m -from mymath import sinc2d +from code.mymath import sinc2d @pytest.mark.parametrize("x,y,expected", [(0,0,1), @@ -10,4 +10,4 @@ ]) def test_sinc2d(x,y,expected): observed = sinc2d(x,y) - assert expected == observed \ No newline at end of file + assert expected == observed diff --git a/tests/test_mymath2.py b/tests/test_mymath2.py index d8e7262..c5c3b88 100644 --- a/tests/test_mymath2.py +++ b/tests/test_mymath2.py @@ -1,5 +1,5 @@ import pytest -from mymath import * +from code.mymath import * @pytest.mark.parametrize("x,x_plus_one",[(0,1),(1,2),(1.5,2.5),(2.25,3.25)]) def test_addone(x,x_plus_one): @@ -15,4 +15,4 @@ def test_addone_then_double(x,x_plusone_doubled): @pytest.mark.parametrize("x,y,val",[(1,1,0.7080734182735712),(5,0.25,-0.18979332974154567)]) def test_sinc2d_regression(x,y,val): - assert abs(sinc2d(x,y)-val) < 1e-10 \ No newline at end of file + assert abs(sinc2d(x,y)-val) < 1e-10