From 60d3e6bcc1427ed8011708c996cc1d826524aed0 Mon Sep 17 00:00:00 2001 From: Guillaume Giudicelli Date: Wed, 25 Dec 2024 02:40:05 +0100 Subject: [PATCH] Address test failures --- framework/src/mesh/GeneratedMesh.C | 3 +-- modules/thermal_hydraulics/src/base/THMMesh.C | 2 ++ python/MooseDocs/test/extensions/test_appsyntax.py | 12 ++++++------ 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/framework/src/mesh/GeneratedMesh.C b/framework/src/mesh/GeneratedMesh.C index daa5d0e07278..8157c4987736 100644 --- a/framework/src/mesh/GeneratedMesh.C +++ b/framework/src/mesh/GeneratedMesh.C @@ -32,8 +32,7 @@ GeneratedMesh::validParams() MooseEnum elem_types(LIST_GEOM_ELEM); // no default MooseEnum dims("1=1 2 3"); - params.addRequiredParam( - "dim", dims, "The dimension of the mesh to be generated"); // Make this parameter required + params.addRequiredParam("dim", dims, "The dimension of the mesh to be generated"); params.addParam("nx", 1, "Number of elements in the X direction"); params.addParam("ny", 1, "Number of elements in the Y direction"); diff --git a/modules/thermal_hydraulics/src/base/THMMesh.C b/modules/thermal_hydraulics/src/base/THMMesh.C index 512973dfcc7f..2dbf249339cd 100644 --- a/modules/thermal_hydraulics/src/base/THMMesh.C +++ b/modules/thermal_hydraulics/src/base/THMMesh.C @@ -26,6 +26,8 @@ THMMesh::validParams() { InputParameters params = MooseMesh::validParams(); params.addClassDescription("Creates a mesh (nodes and elements) for the Components"); + MooseEnum dims("1=1 2 3", "3"); + params.addParam("dim", dims, "The dimension of the mesh to be generated"); // we do not allow renumbering, because we generate our meshes params.set("allow_renumbering") = false; return params; diff --git a/python/MooseDocs/test/extensions/test_appsyntax.py b/python/MooseDocs/test/extensions/test_appsyntax.py index 818ed0e8842a..2d9bca6ba897 100755 --- a/python/MooseDocs/test/extensions/test_appsyntax.py +++ b/python/MooseDocs/test/extensions/test_appsyntax.py @@ -76,7 +76,7 @@ def testAST(self): def testHTML(self): _, res = self.execute(self.TEXT, renderer=base.HTMLRenderer()) - self.assertSize(res, 9) + self.assertSize(res, 11) self.assertHTMLTag(res(0), 'h2', id_='input-parameters', size=3) self.assertEqual(res(0).text(), 'Input Parameters') @@ -95,11 +95,11 @@ def testHTML(self): self.assertEqual(res(3).text(), 'Optional Parameters') # This size should match the number of optional parameters for Kernel - self.assertHTMLTag(res(4), 'ul', size=4) + self.assertHTMLTag(res(4), 'ul', size=2) self.assertHTMLTag(res(5), 'h3') self.assertEqual(res(5)['data-details-open'], 'close') - self.assertEqual(res(5).text(), 'Tagging Parameters') + self.assertEqual(res(5).text(), 'Contribution To Tagged Field Data Parameters') self.assertHTMLTag(res(6), 'ul', size=5) @@ -111,7 +111,7 @@ def testHTML(self): def testMaterialize(self): _, res = self.execute(self.TEXT, renderer=base.MaterializeRenderer()) - self.assertSize(res, 9) + self.assertSize(res, 11) self.assertHTMLTag(res(0), 'h2', id_='input-parameters', size=3) self.assertEqual(res(0).text(), 'Input Parameters') @@ -137,11 +137,11 @@ def testMaterialize(self): self.assertEqual(res(3).text(), 'Optional Parameters') # This size should match the number of optional parameters for Kernel - self.assertHTMLTag(res(4), 'ul', size=4, class_='collapsible') + self.assertHTMLTag(res(4), 'ul', size=2, class_='collapsible') self.assertHTMLTag(res(5), 'h3') self.assertEqual(res(5)['data-details-open'], 'close') - self.assertEqual(res(5).text(), 'Tagging Parameters') + self.assertEqual(res(5).text(), 'Contribution To Tagged Field Data Parameters') self.assertHTMLTag(res(6), 'ul', size=5, class_='collapsible')