Skip to content

Commit

Permalink
Move ImportModelWithNullContext test to core tests (openvinotoolkit#2…
Browse files Browse the repository at this point in the history
…2511)

* Move ImportModelWithNullContext test to core tests

* Apply comments
  • Loading branch information
olpipi authored Jan 31, 2024
1 parent c7b2f61 commit 4e302aa
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
15 changes: 15 additions & 0 deletions src/inference/tests/functional/import_model.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright (C) 2018-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//

#include "common_test_utils/common_utils.hpp"
#include "gtest/gtest.h"
#include "openvino/runtime/core.hpp"

// Test is disabled due to issue 128924
TEST(ImportModel, DISABLED_ImportModelWithNullContextThrows) {
ov::Core core;
ov::RemoteContext context;
std::istringstream stream("None");
ASSERT_THROW(core.import_model(stream, context, {}), ov::Exception);
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ std::vector<std::string> disabledTestPatterns() {
R"(.*smoke_GridSample/GridSampleLayerTest.Inference/.*model_type=f16.*)",
// Issue: 119648
R"(.*smoke_LPT/InterpolateTransformation.*)",
// Issue: 128924
R"(.*OVClassModelTestP/OVClassModelTestP.ImportModelWithNullContextThrows.*)",
#if defined(_WIN32)
R"(.*KernelCachingSupportCase.*CanCreateCacheDirAndDumpBinariesUnicodePath.*)",
#endif
Expand Down
3 changes: 0 additions & 3 deletions src/plugins/template/tests/functional/skip_tests_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,6 @@ std::vector<std::string> disabledTestPatterns() {
R"(.*eltwiseOpType=Mod_secondaryInputType=PARAMETER_opType=VECTOR_NetType=(f16|f32).*)",
// Interpreter backend doesn't implement evaluate method for OP Multiply (by GroupNormalizationDecomposition)
R"(.*ReferenceGroupNormalization.*_f64*)",
// Issue: 128924
R"(.*OVClassModelTestP/OVClassModelTestP.ImportModelWithNullContextThrows.*)",

};

#ifdef _WIN32
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ TEST_P(OVClassModelTestP, QueryModelWithKSO) {
}
}

TEST_P(OVClassModelTestP, ImportModelWithNullContextThrows) {
ov::Core ie = createCoreWithTemplate();
ov::RemoteContext context;
std::istringstream stream("None");
ASSERT_THROW(ie.import_model(stream, context, {}), ov::Exception);
}

TEST_P(OVClassQueryModelTest, QueryModelWithMatMul) {
ov::Core ie = createCoreWithTemplate();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Test Name,Fix Priority
ov_plugin_mandatory/OVCheckChangePropComplieModleGetPropTests_InferencePrecision.ChangeCorrectProperties/target_device=CPU_,1.0
ov_plugin_mandatory/OVClassModelTestP.ImportModelWithNullContextThrows/0,1
ov_compiled_model_mandatory/OVClassCompiledModelGetPropertyTest_MODEL_PRIORITY.GetMetricNoThrow/3,1.0
ov_compiled_model_mandatory/OVClassCompiledModelGetPropertyTest_MODEL_PRIORITY.GetMetricNoThrow/2,1.0
ov_compiled_model_mandatory/OVClassCompiledModelGetPropertyTest_MODEL_PRIORITY.GetMetricNoThrow/1,1.0
Expand Down

0 comments on commit 4e302aa

Please sign in to comment.