In a large pot, heat the olive oil over medium heat. Add the onion and garlic and cook until tender, about 5 minutes. Stir in the artichoke hearts and cook for 2-3 minutes. Add the vegetable broth, beans, tortellini, and spinach leaves. Cook until tortellini is soft, about 7 minutes.