Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tests for url generation #70

Open
eads opened this issue Aug 17, 2017 · 3 comments
Open

add tests for url generation #70

eads opened this issue Aug 17, 2017 · 3 comments

Comments

@eads
Copy link
Contributor

eads commented Aug 17, 2017

No description provided.

@alesage
Copy link

alesage commented Oct 30, 2017

A friend directed me to the ProPublica article and I'd like to pitch in; would you provide a little more info on this issue?

@eads
Copy link
Contributor Author

eads commented Oct 31, 2017

Hey @alesage! That's fantastic.

Here's the deal: I'm working on getting the public facing version of this out the door in the next few weeks with a minimum viable product coming next week ahead of publishing the public facing app.

I'll ping you once that's done and we can get into this a bit more deeply. There's a couple other contributors I need to circle back with as well.

In the short term, please fork the repo to make pull requests and check out https://github.com/propublica/cookcountyjail2/blob/master/jailscraper/spiders/inmate_spider.py#L62-L81, specifically line 67. It's trivial, but we should factor line 67 into a small function and then write a test to ensure it's properly generating URLs. I'm quite sure it is, so this is really about testing for regressions and future proofing in case the url scheme changes.

@alesage
Copy link

alesage commented Nov 3, 2017

Agree that this is small but the effect was just to introduce me to the codebase, I have some spare cycles if more is needed? Else I'll look forward to some circling-back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants