replace lena.jpg in find-existing-file tests

pull/25643/head
Christine Poerschke 6 months ago
parent ba28b7d6df
commit 8b2783e9ff
  1. 2
      modules/core/test/test_utils.cpp
  2. 2
      modules/python/test/test_misc.py

@ -345,7 +345,7 @@ TEST(Samples, findFile)
{
cv::utils::logging::LogLevel prev = cv::utils::logging::setLogLevel(cv::utils::logging::LOG_LEVEL_VERBOSE);
cv::String path;
ASSERT_NO_THROW(path = samples::findFile("lena.jpg", false));
ASSERT_NO_THROW(path = samples::findFile("HappyFish.jpg", false));
EXPECT_NE(std::string(), path.c_str());
cv::utils::logging::setLogLevel(prev);
}

@ -973,7 +973,7 @@ class CanUsePurePythonModuleFunction(NewOpenCVTests):
class SamplesFindFile(NewOpenCVTests):
def test_ExistedFile(self):
res = cv.samples.findFile('lena.jpg', False)
res = cv.samples.findFile('HappyFish.jpg', False)
self.assertNotEqual(res, '')
def test_MissingFile(self):

Loading…
Cancel
Save