14#include "testing/testing.h"
39 const std::string test_files_dir = blender::tests::flags_test_asset_dir();
40 if (test_files_dir.empty()) {
45 const std::string library_dirpath = test_files_dir +
"/" +
"asset_library";
47 ASSERT_NE(
nullptr, library);
55 const bUUID uuid_poses_ellie(
"df60e1f6-2259-475b-93d9-69a1b4a8db78");
57 ASSERT_NE(
nullptr, poses_ellie) <<
"unable to find POSES_ELLIE catalog";
63 const std::string test_files_dir = blender::tests::flags_test_asset_dir();
64 if (test_files_dir.empty()) {
69 const std::string library_dirpath = test_files_dir +
"/" +
70 "asset_library/this/subdir/does/not/exist";
72 ASSERT_NE(
nullptr, library);
blender::asset_system::AssetLibrary * AS_asset_library_load(const Main *bmain, const AssetLibraryReference &library_reference)
void BKE_callback_global_finalize()
void BKE_callback_global_init()
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
const std::string & str() const
AssetCatalog * find_catalog(CatalogID catalog_id) const
AssetCatalogService & catalog_service() const
static void SetUpTestSuite()
static void TearDownTestSuite()
TEST_F(AssetCatalogTest, load_single_file)
Universally Unique Identifier according to RFC4122.