Skip to content
Snippets Groups Projects
Commit cbc301ca authored by Martin Lange's avatar Martin Lange
Browse files

add tests for renaming

parent 9f98a572
No related branches found
No related tags found
1 merge request!243Allow renaming
Pipeline #134951 passed with stages
in 4 minutes and 40 seconds
......@@ -874,5 +874,15 @@ class TestNotImplemented(unittest.TestCase):
adapter._get_data(datetime(2000, 1, 1), None)
class TestRename(unittest.TestCase):
def test_rename_component(self):
comp = fm.modules.SimplexNoise().with_name("CompA")
self.assertEqual("CompA", comp.name)
def test_rename_adapter(self):
ada = fm.adapters.Scale(1.0).with_name("Scale-1")
self.assertEqual("Scale-1", ada.name)
if __name__ == "__main__":
unittest.main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment