def test_should_build_empty_initializer_when_defaults_are_used(self): scaffolding = PythonProjectScaffolding('some-project') scaffolding.build_initializer() self.assertEqual(scaffolding.initializer, '''@init def set_properties(project): pass''')
def test_should_build_initializer_for_custom_test_dir(self): scaffolding = PythonProjectScaffolding('some-project') scaffolding.dir_source_unittest_python = 'test' scaffolding.build_initializer() self.assertEqual(scaffolding.initializer, '''@init def set_properties(project): project.set_property("dir_source_unittest_python", "test")''')
def test_should_not_build_initializer_when_defaults_are_used(self): scaffolding = PythonProjectScaffolding('some-project') scaffolding.build_initializer() self.assertEqual(scaffolding.initializer, '')