Skip to content

Commit

Permalink
Merge pull request #79 from isteinbrecher/fix_relative_imports_in_tes…
Browse files Browse the repository at this point in the history
…ting

Fix relative imports in testing
  • Loading branch information
isteinbrecher authored Jun 10, 2024
2 parents ac773ee + da6f7e5 commit 72c7dfe
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 17 deletions.
2 changes: 1 addition & 1 deletion tests/performance_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
from meshpy.geometric_search import FindClosePointAlgorithm, find_close_points
from meshpy.mesh_creation_functions.beam_basic_geometry import create_beam_mesh_line

from utilities import empty_testing_directory, testing_temp
from utils import empty_testing_directory, testing_temp

# Cubitpy imports.
from cubitpy import cupy, CubitPy
Expand Down
2 changes: 1 addition & 1 deletion tests/testing_abaqus.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
from meshpy.mesh_creation_functions.beam_basic_geometry import create_beam_mesh_line

# Testing imports
from utilities import compare_test_result
from utils import compare_test_result


class TestAbaqusMeshpy(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/testing_four_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
import numpy as np

# Testing imports.
from utilities import compare_test_result
from utils import compare_test_result

# Meshpy imports.
from meshpy import (
Expand Down
2 changes: 1 addition & 1 deletion tests/testing_four_c_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import glob

# Testing imports.
from utilities import (
from utils import (
compare_test_result,
get_four_c_path,
testing_temp,
Expand Down
2 changes: 1 addition & 1 deletion tests/testing_header_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
)

# Testing imports.
from utilities import compare_test_result
from utils import compare_test_result


class TestHeaderFunctions(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/testing_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import unittest

# Import testing functions.
from utilities import empty_testing_directory
from utils import empty_testing_directory


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion tests/testing_mesh_creation_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
)

# Testing imports.
from utilities import testing_input, compare_test_result, compare_strings
from utils import testing_input, compare_test_result, compare_strings


def create_helix_function(
Expand Down
4 changes: 2 additions & 2 deletions tests/testing_meshpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
from meshpy.mesh_creation_functions.beam_curve import create_beam_mesh_curve

# Testing imports.
from utilities import (
from utils import (
skip_fail_test,
testing_temp,
testing_input,
Expand Down Expand Up @@ -1636,7 +1636,7 @@ def test_meshpy_cubitpy_import(self):
skip_fail_test(self, "CubitPy could not be loaded!")

# Load the mesh creation functions.
from create_cubit_input import create_tube, create_tube_cubit
from meshpy_testing.create_cubit_input import create_tube, create_tube_cubit

# Create the input file and read the file.
file_path = os.path.join(testing_temp, "test_cubitpy_import.dat")
Expand Down
2 changes: 1 addition & 1 deletion tests/testing_nurbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
)

# Testing imports
from utilities import testing_input, compare_test_result
from utils import testing_input, compare_test_result


class TestNurbsMeshCreationFunction(unittest.TestCase):
Expand Down
7 changes: 1 addition & 6 deletions tests/testing_simulation_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,7 @@
)
from meshpy.mesh_creation_functions import create_beam_mesh_line
from meshpy.simulation_manager import Simulation, SimulationManager
from utilities import (
testing_temp,
get_four_c_path,
testing_input,
compare_test_result,
)
from utils import testing_temp, get_four_c_path, testing_input, compare_test_result


def is_cluster_test():
Expand Down
2 changes: 1 addition & 1 deletion tests/testing_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import meshpy_tutorial

# Import testing utilities.
from utilities import testing_temp, compare_test_result
from utils import testing_temp, compare_test_result


class TestTutorial(unittest.TestCase):
Expand Down
File renamed without changes.

0 comments on commit 72c7dfe

Please sign in to comment.