Closed ejhumphrey closed 7 years ago
alrighty, I think this is ready for a final pass:
conftest.py
for reusable pytest fixturespaging @bmcfee 😉
alrighty, I think this is ready for a final pass:
Looks like there are still a bunch of outstanding comments in my previous review?
sorry, all comments have been addressed on recent commits, updated each with some kind of ack., lemme know how it currently looks, and I'll take a look at the request.args
declaration.
weird, looks stale to me, but I'm on my phone... will investigate further shortly.
On Mon, Jan 16, 2017 at 11:21 AM Brian McFee notifications@github.com wrote:
@bmcfee commented on this pull request.
In backend_server/main.py https://github.com/cosmir/open-mic/pull/42:
CORS(app)
Set the cloud backend
CLOUD_CONFIG = os.path.join(os.path.dirname(file), '.config.json')
app.config['cloud'] = json.load(open(CLOUD_CONFIG))
+OAUTH_CONFIG = os.path.join(os.path.dirname(file), 'configs', 'oauth.yaml')
+app.config['oauth'] = yaml.load(open(OAUTH_CONFIG))
what about context managers on the file opens?
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/cosmir/open-mic/pull/42, or mute the thread https://github.com/notifications/unsubscribe-auth/AA4iq_jIblTnY-QUW6-Rosvhhmn7aGXTks5rS5khgaJpZM4LaGUk .
weird, looks stale to me, but I'm on my phone... will investigate further shortly.
Annoyingly, it gives the latest version if i click on the "view changes" link instead of the "review" link. I added some comments.
thx / sorry for the troubles, willfix tonight
@bmcfee can haz another look? also, I think we shouldn't worry about the drop in coverage ... OAuth adds a bunch of machinery that can only talk to real web services, and I'm not sure there's a meaningful way to test them (or that it's worth the time right now).
think we shouldn't worry about the drop in coverage ... OAuth adds a bunch of machinery that can only talk to real web services, and I'm not sure there's a meaningful way to test them (or that it's worth the time right now).
This is what mocking is for. This thread has some notes on how to do it.
Otherwise, I'll try to look at this one tomorrow.
This PR implements Google & Spotify OAuth handshaking for properly credentialed applications through an abstraction layer, and attempts to document how others can do the same.