from ocr.setup import is_installed, new_ong_dir, create_database, create_tables if not is_installed(): print "Installing..." new_ong_dir() create_database() create_tables() else: print "Installed"
def test_create_database(self, mock_engine): create_database() mock_engine.execute.assert_called_with( 'CREATE DATABASE IF NOT EXISTS `%s`' % BD_NAME)
def test_create_database(self, mock_engine): create_database() mock_engine.execute.assert_called_with('CREATE DATABASE IF NOT EXISTS `%s`' % BD_NAME)