From 8ffb8a73dfee98d93a7ad49a5e5fd14b4bd2d70e Mon Sep 17 00:00:00 2001 From: "Jens W. Klein" Date: Thu, 13 Jun 2024 18:00:14 +0200 Subject: [PATCH] run precommit --- plone/dexterity/tests/test_schema.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/plone/dexterity/tests/test_schema.py b/plone/dexterity/tests/test_schema.py index f5ae511..380bf57 100644 --- a/plone/dexterity/tests/test_schema.py +++ b/plone/dexterity/tests/test_schema.py @@ -57,18 +57,20 @@ def test_default_schema_with_mtime(self): # Mock schema model class IDummy(Interface): - dummy = zope.schema.TextLine(title=u"Dummy") + dummy = zope.schema.TextLine(title="Dummy") - mock_model = Model({u"": IDummy}) + mock_model = Model({"": IDummy}) # Mock FTI fti_mock = Mock(spec=DexterityFTI) fti_mock.lookupModel = Mock(return_value=mock_model) fti_mock._p_mtime = 1650380190.961898 - self.mock_utility(fti_mock, IDexterityFTI, u"testtype") + self.mock_utility(fti_mock, IDexterityFTI, "testtype") factory = schema.SchemaModuleFactory() - schemaName = schema.portalTypeToSchemaName("testtype", prefix="site", suffix=get_suffix(fti_mock)) + schemaName = schema.portalTypeToSchemaName( + "testtype", prefix="site", suffix=get_suffix(fti_mock) + ) klass = factory(schemaName, schema.generated) self.assertTrue(isinstance(klass, InterfaceClass)) @@ -82,18 +84,20 @@ def test_default_schema_with_mtime_no_millis(self): # Mock schema model class IDummy(Interface): - dummy = zope.schema.TextLine(title=u"Dummy") + dummy = zope.schema.TextLine(title="Dummy") - mock_model = Model({u"": IDummy}) + mock_model = Model({"": IDummy}) # Mock FTI fti_mock = Mock(spec=DexterityFTI) fti_mock.lookupModel = Mock(return_value=mock_model) fti_mock._p_mtime = 1650380190.0 - self.mock_utility(fti_mock, IDexterityFTI, u"testtype") + self.mock_utility(fti_mock, IDexterityFTI, "testtype") factory = schema.SchemaModuleFactory() - schemaName = schema.portalTypeToSchemaName("testtype", prefix="site", suffix=get_suffix(fti_mock)) + schemaName = schema.portalTypeToSchemaName( + "testtype", prefix="site", suffix=get_suffix(fti_mock) + ) klass = factory(schemaName, schema.generated) self.assertTrue(isinstance(klass, InterfaceClass))