Exemple #1
0
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
Exemple #2
0
 def extension(self):
     return ext.Extension()
Exemple #3
0
 def setUp(self):
     self.ext = ext.Extension()
Exemple #4
0
 def setUp(self):  # noqa: N802
     self.ext = ext.Extension()