Skip to content

Commit

Permalink
Simplify test logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm authored Oct 12, 2024
1 parent 1835f9a commit 3db207b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions source/MaterialXTest/MaterialXCore/Document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,8 @@ TEST_CASE("Document", "[document]")
customImpl->setNodeDef(customNodeDef);
REQUIRE(customLibrary->validate());

// Import the custom library.
mx::DocumentPtr customdatalibrary = mx::createDocument();
customdatalibrary->importLibrary(customLibrary);

// Set data library
doc->setDataLibrary(customdatalibrary);
// Set data library reference.
doc->setDataLibrary(customLibrary);
mx::NodeGraphPtr importedNodeGraph = doc->getNodeGraph("custom:NG_custom");
mx::NodeDefPtr importedNodeDef = doc->getNodeDef("custom:ND_simpleSrf");
mx::ImplementationPtr importedImpl = doc->getImplementation("custom:IM_custom");
Expand Down

0 comments on commit 3db207b

Please sign in to comment.