Heat olive oil in a medium sauté pan over medium-high heat. Add sweet potatoes and red onion. Sauté until potatoes are tender, about 10 minutes. Add black beans, cumin, chili powder, garlic powder, salt, and pepper, and cook for another 2 minutes until beans are warmed through.