https://bugs.kde.org/show_bug.cgi?id=446588
--- Comment #16 from Dmitry Kazakov <dimul...@gmail.com> --- Git commit 00cfb9213d53cc1b4683c912dc6e46593e4dd14f by Dmitry Kazakov. Committed on 13/12/2021 at 16:21. Pushed by dkazakov into branch 'krita/5.0'. Add unittests for KisResourceLocator::importResource The requirements the tests check are the following: 1) When 'override' flag is not set we will never succeed importing, even when the existing resource is exactly the same. It is needed to avoid confusion in the models that expect the resource to be **added** for real. 2) When override flag is set and the exactly the same resource (with the same filename case, and with the latest version) exists, then we return this resource. 3) Otherwise we remove all the versions of the existing resource and add the new one. Related: bug 446743 M +36 -0 libs/resources/KisResourceCacheDb.cpp M +2 -0 libs/resources/KisResourceCacheDb.h M +59 -39 libs/resources/KisResourceLocator.cpp M +30 -0 libs/resources/tests/TestBundleStorage.cpp M +1 -0 libs/resources/tests/TestBundleStorage.h M +28 -0 libs/resources/tests/TestFolderStorage.cpp M +1 -0 libs/resources/tests/TestFolderStorage.h M +93 -0 libs/resources/tests/TestResourceLocator.cpp M +1 -0 libs/resources/tests/TestResourceLocator.h https://invent.kde.org/graphics/krita/commit/00cfb9213d53cc1b4683c912dc6e46593e4dd14f -- You are receiving this mail because: You are watching all bug changes.