Test ensure that WSTAT is included in SummaryConfig
This commit is contained in:
parent
9732520e3f
commit
2a50e28085
@ -20,7 +20,7 @@
|
||||
#define BOOST_TEST_MODULE SummaryConfigTests
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <opm/common/utility/OpmInputError.hpp>
|
||||
#include <opm/io/eclipse/SummaryNode.hpp>
|
||||
#include <opm/parser/eclipse/Python/Python.hpp>
|
||||
@ -209,6 +209,16 @@ BOOST_AUTO_TEST_CASE(wells_all) {
|
||||
names.begin(), names.end() );
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(WSTATE) {
|
||||
const auto input = "WSTAT\n/\n";
|
||||
const auto summary = createSummary( input );
|
||||
|
||||
const auto wells = { "PRODUCER", "WX2", "W_1", "W_3" };
|
||||
for (const auto& well : wells)
|
||||
BOOST_CHECK(summary.hasSummaryKey(fmt::format("WSTAT:{}", well)));
|
||||
}
|
||||
|
||||
|
||||
BOOST_AUTO_TEST_CASE(EMPTY) {
|
||||
auto deck = createDeck_no_wells( "" );
|
||||
auto python = std::make_shared<Python>();
|
||||
|
Loading…
Reference in New Issue
Block a user