mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08: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:
commit
ea2a3cb264
@ -345,7 +345,7 @@ TEST(Samples, findFile)
|
|||||||
{
|
{
|
||||||
cv::utils::logging::LogLevel prev = cv::utils::logging::setLogLevel(cv::utils::logging::LOG_LEVEL_VERBOSE);
|
cv::utils::logging::LogLevel prev = cv::utils::logging::setLogLevel(cv::utils::logging::LOG_LEVEL_VERBOSE);
|
||||||
cv::String path;
|
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());
|
EXPECT_NE(std::string(), path.c_str());
|
||||||
cv::utils::logging::setLogLevel(prev);
|
cv::utils::logging::setLogLevel(prev);
|
||||||
}
|
}
|
||||||
|
@ -973,7 +973,7 @@ class CanUsePurePythonModuleFunction(NewOpenCVTests):
|
|||||||
class SamplesFindFile(NewOpenCVTests):
|
class SamplesFindFile(NewOpenCVTests):
|
||||||
|
|
||||||
def test_ExistedFile(self):
|
def test_ExistedFile(self):
|
||||||
res = cv.samples.findFile('lena.jpg', False)
|
res = cv.samples.findFile('HappyFish.jpg', False)
|
||||||
self.assertNotEqual(res, '')
|
self.assertNotEqual(res, '')
|
||||||
|
|
||||||
def test_MissingFile(self):
|
def test_MissingFile(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user