Cleanup: Make format

This commit is contained in:
Jeroen Bakker
2023-11-16 07:59:20 +01:00
parent d0c073898a
commit 81eec5ff44
2 changed files with 19 additions and 5 deletions

View File

@@ -3281,7 +3281,7 @@ class VIEW3D_MT_object_convert(Menu):
if ob and ob.type == 'CURVES':
layout.operator("curves.convert_to_particle_system", text="Particle System")
layout.template_node_operator_asset_menu_items(catalog_path="Object/Convert")

View File

@@ -43,13 +43,28 @@ class FieldTypeInferenceTest(unittest.TestCase):
return 'Unknown'
def assert_value_socket(self, socket):
self.assertEqual(socket.display_shape, 'CIRCLE', "Socket {} must be Single Value, but is {}".format(socket.name, self.field_type_name(socket)))
self.assertEqual(
socket.display_shape,
'CIRCLE',
"Socket {} must be Single Value, but is {}".format(
socket.name,
self.field_type_name(socket)))
def assert_field_socket(self, socket):
self.assertEqual(socket.display_shape, 'DIAMOND', "Socket {} must be Field, but is {}".format(socket.name, self.field_type_name(socket)))
self.assertEqual(
socket.display_shape,
'DIAMOND',
"Socket {} must be Field, but is {}".format(
socket.name,
self.field_type_name(socket)))
def assert_value_or_field_socket(self, socket):
self.assertEqual(socket.display_shape, 'DIAMOND_DOT', "Socket {} must be Field or Single Value, but is {}".format(socket.name, self.field_type_name(socket)))
self.assertEqual(
socket.display_shape,
'DIAMOND_DOT',
"Socket {} must be Field or Single Value, but is {}".format(
socket.name,
self.field_type_name(socket)))
def find_input_link(self, socket):
for link in socket.id_data.links:
@@ -417,7 +432,6 @@ class FieldTypeInferenceTest(unittest.TestCase):
self.assert_value_or_field_socket(node.outputs['Attribute.004'])
def main():
global args
import argparse