From 070d8cdb0d85ecfff4294bcdcaff3a0b03463978 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 | 2 +- 3 files changed, 4 insertions(+), 3 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..55507832db2f 100755 --- a/python/MooseDocs/test/extensions/test_appsyntax.py +++ b/python/MooseDocs/test/extensions/test_appsyntax.py @@ -273,7 +273,7 @@ class TestList(AppSyntaxTestCase): def testAST(self): ast = self.tokenize(self.TEXT) - self.assertToken(ast(0), 'Heading', size=11) + self.assertToken(ast(0), 'Heading', size=9) self.assertEqual(ast(0).text(), "Available Objects Actions and Subsystems") # text() omits commas self.assertToken(ast(1), 'SyntaxList')