Merge pull request #25643 from cpoerschke:issue-25635-find-existing-file-tests

replace lena.jpg in find-existing-file tests
This commit is contained in:
Alexander Smorkalov 2024-08-05 15:28:16 +03:00 committed by GitHub
commit ea2a3cb264
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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):