The immediate solution is that you’ll need to edit app.yml by hand with and editor like nano. Make sure that you surround your username with quotes. I’m not quite sure if there are other problems down the line with spaces in passwords.
I’ll add to my list to fix those tests in discourse-setup so that they aren’t broken by spaces.