1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-21 19:33:03 +04:00

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
2 changed files with 2 additions and 2 deletions
+1 -1
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);
}
+1 -1
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):