Skip to content

Commit f66b110

Browse files
authored
[GeoMechanicsApplication] Removed an unused test utility function (#13593)
The file comparison function was accidentally not removed as part of PR #13576. Furthermore, two example Python unit test cases have been removed, as they contained sample checks only.
1 parent 9f9f52e commit f66b110

File tree

5 files changed

+3
-67
lines changed

5 files changed

+3
-67
lines changed

applications/GeoMechanicsApplication/tests/cpp_tests/custom_geometries/test_interface_geometry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ KRATOS_TEST_CASE_IN_SUITE(InterfaceGeometry_ReturnsCorrectShapeFunctionValuesInN
286286
KRATOS_TEST_CASE_IN_SUITE(InterfaceGeometry_ReturnsCorrectShapeFunctionValuesInNodes_ForThreePlusThreeNodedPlanarGeometry,
287287
KratosGeoMechanicsFastSuiteWithoutKernel)
288288
{
289-
const auto geometry = CreateThreePlusThreeNoded3DPlanarInterfaceGeometry();
289+
const auto geometry = CreateThreePlusThreeNoded3DPlanarInterfaceGeometry();
290290
const auto local_coord_first_node_pair = array_1d<double, 3>{0.0, 0.0, 0.0};
291291
const auto local_coord_second_node_pair = array_1d<double, 3>{1.0, 0.0, 0.0};
292292
const auto local_coord_third_node_pair = array_1d<double, 3>{0.0, 1.0, 0.0};

applications/GeoMechanicsApplication/tests/cpp_tests/test_utilities.cpp

Lines changed: 0 additions & 39 deletions
This file was deleted.

applications/GeoMechanicsApplication/tests/cpp_tests/test_utilities.h

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,10 @@
1212

1313
#pragma once
1414

15-
#include <filesystem>
16-
17-
namespace Kratos::Testing
18-
{
19-
20-
namespace Defaults
15+
namespace Kratos::Testing::Defaults
2116
{
2217

2318
constexpr auto absolute_tolerance = 1.0e-12;
2419
constexpr auto relative_tolerance = 1.0e-6;
2520

26-
} // namespace Defaults
27-
28-
class TestUtilities
29-
{
30-
public:
31-
static bool CompareFiles(const std::filesystem::path& rPath1, const std::filesystem::path& rPath2);
32-
};
33-
34-
} // namespace Kratos::Testing
21+
} // namespace Kratos::Testing::Defaults

applications/GeoMechanicsApplication/tests/test_GeoMechanicsApplication.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,6 @@ def AssembleTestSuites():
118118
KratosGeoMechanicsHydraulicHeads,
119119
]
120120

121-
# Create an array with the selected tests
122-
# nightSuite will contain the following tests:
123-
# - testSmallExample
124-
# - testNightlyFirstExample
125-
# - testNightlySecondExample
126-
127121
night_test_cases = [
128122
KratosGeoMechanicsSettlementWorkflowCppRoute,
129123
KratosGeoMechanicsSettlementWorkflowPyRoute,

applications/GeoMechanicsApplication/tests/test_excavation.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,5 @@ def test_phases(self):
163163
# for i in range(len(top_nodes)):
164164
# self.assertAlmostEqual(top_y_displacement[i], displacements[top_nodes[i]-1][1])
165165

166-
def testNightlyFirstExample(self):
167-
self.assertEqual(True, True)
168-
169-
def testNightlySecondExample(self):
170-
self.assertEqual(True, True)
171-
172166
if __name__ == '__main__':
173167
KratosUnittest.main()

0 commit comments

Comments
 (0)