def test_format_initial(): extension = ext.Extension() extension.ext_name = 'foo' extension.get_default_config = lambda: None extensions_data = [ ext.ExtensionData( extension=extension, entry_point=None, config_schema=None, config_defaults=None, command=None, ), ] result = config.format_initial(extensions_data) assert '# For further information' in result assert '[foo]\n' in result
def extension(self): return ext.Extension()
def setUp(self): self.ext = ext.Extension()
def setUp(self): # noqa: N802 self.ext = ext.Extension()