diff --git a/applications/GeoMechanicsApplication/tests/cpp_tests/test_Pw_normal_flux_condition.cpp b/applications/GeoMechanicsApplication/tests/cpp_tests/test_Pw_normal_flux_condition.cpp index 6b37cb074030..962034beed4a 100644 --- a/applications/GeoMechanicsApplication/tests/cpp_tests/test_Pw_normal_flux_condition.cpp +++ b/applications/GeoMechanicsApplication/tests/cpp_tests/test_Pw_normal_flux_condition.cpp @@ -11,18 +11,14 @@ // #include -#include // Project includes #include "containers/model.h" #include "testing/testing.h" #include "custom_conditions/Pw_normal_flux_condition.hpp" -namespace Kratos +namespace Kratos::Testing { - namespace Testing - { - KRATOS_TEST_CASE_IN_SUITE(CalculateHorizontalNormalFlux, KratosGeoMechanicsFastSuite) { @@ -58,7 +54,6 @@ namespace Kratos // Create the test piping element std::vector cond_nodes{1, 2}; - // auto p_element = r_model_part.CreateNewElement("SteadyStatePwPipingElement2D4N", 1, element_nodes, p_elem_prop); auto cond = r_model_part.CreateNewCondition("PwNormalFluxCondition2D2N", 1, cond_nodes, cond_prop); // Initialize the element to initialize the constitutive law const auto &r_process_info = r_model_part.GetProcessInfo(); @@ -122,7 +117,6 @@ namespace Kratos // Create the test piping element std::vector cond_nodes{1, 2}; - // auto p_element = r_model_part.CreateNewElement("SteadyStatePwPipingElement2D4N", 1, element_nodes, p_elem_prop); auto cond = r_model_part.CreateNewCondition("PwNormalFluxCondition2D2N", 1, cond_nodes, cond_prop); // Initialize the element to initialize the constitutive law const auto &r_process_info = r_model_part.GetProcessInfo(); @@ -150,6 +144,4 @@ namespace Kratos 1.0e-6); } } - - } } \ No newline at end of file diff --git a/applications/GeoMechanicsApplication/tests/test_normal_flux_condition.py b/applications/GeoMechanicsApplication/tests/test_normal_flux_condition.py deleted file mode 100644 index dbdebd4a75ee..000000000000 --- a/applications/GeoMechanicsApplication/tests/test_normal_flux_condition.py +++ /dev/null @@ -1,22 +0,0 @@ -from KratosMultiphysics import Tester -import KratosMultiphysics.KratosUnittest as KratosUnittest - -class TestNormalFluxCondition(KratosUnittest.TestCase): - - def setUp(self): - Tester.SetVerbosity(Tester.Verbosity.TESTS_OUTPUTS) # Set the verbosity level - - def tearDown(self): - # Code here will be placed AFTER every test in this TestCase. - pass - - def test_horizontal_normal_flux(self): - exitcode = Tester.RunTestCases("TestCalculateHorizontalNormalFlux") - self.assertTrue(exitcode == 0) - - def test_inclined_normal_flux(self): - exitcode = Tester.RunTestCases("TestCalculateInclinedNormalFlux") - self.assertTrue(exitcode == 0) - -if __name__ == '__main__': - KratosUnittest.main() \ No newline at end of file