NULL
|
695a910297
Remove all graph_id parameters and instead call self.get_graph_id() when needed - same for get_graph() or get_graph_name() as required. Additionally, remove the node_id from the __init__ constructor for Node objects since we don't use it an instead continue only using the azlmbr.object.PythonProxyObject representing the node for calls like get_slots()
|
2 年 前 |
NULL
|
b0231b9cfd
Delete Slot() class, move add_connection_by_slot_id() and are_slots_connected() to Graph() class, Add a get_slots() call to the Node() class that maps all slots on a given node to a dict with a key corresponding to the slot name and the value corresponding to the graph.GraphModelSlotId(slot_name) for that slot name. Also removed __init__ constructors for Graph() class and it only requires a document_id to initialize. Old functions re-added as part of Graph() class methods.
|
2 年 前 |
NULL
|
dd54832433
update to remove references to inbound/outbound slots and make it open to any slot declared in the test, creates a Slot() class for use with the Node() class, remove non-generic functions relating to inbound/outbound
|
2 年 前 |
NULL
|
314fb5f3f8
add Ndoe and Graph classes that contain the various MaterialCanvas busses so that test writers can use these objects instead of raw bus calls in their MaterialCanvas tests.
|
2 年 前 |
NULL
|
e54f4a6d74
clarify that we aren't returning C++ objects but python proxies for C++ objects, address PR questions regarding new test code, remove redundant 'is not None' checks from some .typename checks - the .typename checks will be replaced in the future when we get a function for getting the node ID on a node object
|
2 年 前 |
NULL
|
b379fc2811
Clarified the variables in test to be less confusing, material_graph is a graph object, material_graph_id is the ID of the graph object, material_graph_document_id is the ID of the document file that was opened (doesn't have to be a graph), the material_graph and material_graph_id derive their values from the material_graph_document_id or any document_id then the calls to create/add/remove nodes is done using the material_graph_id but NOT the document_id or material_graph_document_id. This should make the test read more clearly than before and it also fixes the issue with the connection test not passing. All tests pass now without issue.
|
2 年 前 |
NULL
|
e8645456bc
moved the materialcanvas registry setting changes to avoid file writing to atom_tools_utils.py instead of being in MaterialCanvas_Atom_BasicTests.py that way other MaterialCanvas test file can share this functionality where required, renamed a few variables to be more accurate to the objects under test, added additional constants to atom_constants.py for the buses utilized by MaterialCanvas tests, additional tests that add different types of nodes to the graph also implemented, and lastly tested the nodes can be connected.
|
2 年 前 |
NULL
|
d47a52e937
update test to match recent code changes for GetGraphName bus call, had to swap the bus from azlmbr.materialcanvas.MaterialCanvasDocumentRequestBus to azlmbr.atomtools.GraphDocumentRequestBus
|
2 年 前 |
NULL
|
5c19ca7f00
adds some additional basic tests for material canvas, such as opening a material graph and verifying its named correctly, it also verifies visibility of the node palette works
|
2 年 前 |