Skip to content

Commit

Permalink
fixed test paths
Browse files Browse the repository at this point in the history
  • Loading branch information
teseoch committed Feb 22, 2022
1 parent 0d0402b commit 642512a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions test/test_bending.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

class BendingTest(unittest.TestCase):
def test_run(self):
root_folder = os.path.join(
"..", "3rdparty.nosync" if platform.system() == 'Darwin' else "3rdparty", "data")
root_folder = os.path.join("..", "data", "data")

dir_path = os.path.dirname(os.path.realpath(__file__))
mesh_path = os.path.join(dir_path, root_folder, "square_beam.mesh")
Expand Down
3 changes: 1 addition & 2 deletions test/test_febio.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

class FeBioTest(unittest.TestCase):
def test_run(self):
root_folder = os.path.join(
"..", "3rdparty.nosync" if platform.system() == 'Darwin' else "3rdparty", "data")
root_folder = os.path.join("..", "data", "data")

dir_path = os.path.dirname(os.path.realpath(__file__))
febio_file = os.path.join(dir_path, root_folder, "test.feb")
Expand Down
3 changes: 1 addition & 2 deletions test/test_inflation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@

class InflationTest(unittest.TestCase):
def test_run(self):
root_folder = os.path.join(
"..", "3rdparty.nosync" if platform.system() == 'Darwin' else "3rdparty", "data")
root_folder = os.path.join("..", "data", "data")

solver = pf.Solver()

Expand Down
3 changes: 1 addition & 2 deletions test/test_plane_hole.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ def test_run(self):

# def run_one(self, discr_order):
discr_order = 2
root_folder = os.path.join(
"..", "3rdparty.nosync" if platform.system() == 'Darwin' else "3rdparty", "data")
root_folder = os.path.join("..", "data", "data")

dir_path = os.path.dirname(os.path.realpath(__file__))
mesh_path = os.path.join(dir_path, root_folder, "plane_hole.obj")
Expand Down
3 changes: 1 addition & 2 deletions test/test_torsion.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

class TorsionTest(unittest.TestCase):
def test_run(self):
root_folder = os.path.join(
"..", "3rdparty.nosync" if platform.system() == 'Darwin' else "3rdparty", "data")
root_folder = os.path.join("..", "data", "data")
dir_path = os.path.dirname(os.path.realpath(__file__))
mesh_path = os.path.join(dir_path, root_folder, "square_beam_h.HYBRID")

Expand Down

0 comments on commit 642512a

Please sign in to comment.