mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-26 21:27:15 -05:00
Python: Restore WellTypeForExport enum export
This commit is contained in:
committed by
Magne Sjaastad
parent
5b6307bc81
commit
51aa090668
@@ -28,6 +28,7 @@
|
||||
#include "cafPdmDoubleStringValidator.h"
|
||||
#include "cafPdmFieldScriptingCapability.h"
|
||||
#include "cafPdmObjectScriptingCapability.h"
|
||||
#include "cafPdmScriptEnumNameRegistry.h"
|
||||
#include "cafPdmUiLineEditor.h"
|
||||
#include "cafPdmUiTreeOrdering.h"
|
||||
|
||||
@@ -75,6 +76,18 @@ void RimWellPathCompletionSettings::HydrostaticDensityEnum::setUp()
|
||||
|
||||
} // namespace caf
|
||||
|
||||
namespace
|
||||
{
|
||||
struct RegisterScriptEnumNames
|
||||
{
|
||||
RegisterScriptEnumNames()
|
||||
{
|
||||
caf::PdmScriptEnumNameRegistry::registerName<RimWellPathCompletionSettings::WellType>( "WellTypeForExport" );
|
||||
}
|
||||
};
|
||||
const RegisterScriptEnumNames s_registerScriptEnumNames;
|
||||
} // namespace
|
||||
|
||||
CAF_PDM_SOURCE_INIT( RimWellPathCompletionSettings, "WellPathCompletionSettings" );
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -5,6 +5,13 @@ import tempfile
|
||||
sys.path.insert(1, os.path.join(sys.path[0], "../../"))
|
||||
|
||||
import dataroot
|
||||
from rips import PressureDrop, ReferenceMdType, WellTypeForExport
|
||||
|
||||
|
||||
def test_msw_enum_types_are_importable():
|
||||
assert PressureDrop.HF_ == "HF-"
|
||||
assert ReferenceMdType.GridEntryPoint == "GridEntryPoint"
|
||||
assert WellTypeForExport.OIL == "OIL"
|
||||
|
||||
|
||||
def test_msw_completion_data_perf_lateral(rips_instance, initialize_test):
|
||||
|
||||
Reference in New Issue
Block a user