Skip to content

Conversation

@mlen108
Copy link
Contributor

@mlen108 mlen108 commented Nov 25, 2014

No description provided.

@mlen108
Copy link
Contributor Author

mlen108 commented Nov 25, 2014

Tests fail for python3.3 - I think this project needs tox..

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) when pulling 2c78f2a on throttle-expanded into 3a110c9 on master.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you might need to move this into setUp and use reverse instead of reverse_lazy.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this PR isn't ready for reviews yet.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm just suggesting a solution for your test failures.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm seems like it's the cause - thanks!

@mlen108
Copy link
Contributor Author

mlen108 commented Nov 25, 2014

@ian-foote @meshy review?

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) when pulling 30c23e7 on throttle-expanded into 3a110c9 on master.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be explained with a comment/docstring, please?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 docstring.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@meshy
Copy link
Contributor

meshy commented Nov 25, 2014

Looks good to me

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just use status.HTTP_429_TOO_MANY_REQUESTS directly. I don't think this is any clearer and it requires looking in more places.

@meshy
Copy link
Contributor

meshy commented Nov 25, 2014

Hm... coveralls is reporting that coverage has decreased...

@mlen108
Copy link
Contributor Author

mlen108 commented Nov 25, 2014

@meshy the line it complains about if it's your concern.

@LilyFirefly
Copy link

Test an authenticated user. If the line isn't hit then it doesn't need to be there.

@mlen108
Copy link
Contributor Author

mlen108 commented Nov 25, 2014

If the line isn't hit then it doesn't need to be there.

It is needed there. Will add additional test then.

@mlen108
Copy link
Contributor Author

mlen108 commented Nov 25, 2014

Can this be merged? The coverage is 100% (well, 99% for Django 1.6 .. )

@meshy
Copy link
Contributor

meshy commented Nov 25, 2014

Why are those lines missed on Dj1.6?

@LilyFirefly
Copy link

Because django 1.6 doesn't support checks.

@mlen108
Copy link
Contributor Author

mlen108 commented Nov 25, 2014

checks isn't part of Django 1.6 (it was introduced in 1.7 ;-) )

@meshy
Copy link
Contributor

meshy commented Nov 25, 2014

👍

meshy added a commit that referenced this pull request Nov 25, 2014
@meshy meshy merged commit 914ccb5 into master Nov 25, 2014
@meshy meshy deleted the throttle-expanded branch November 25, 2014 17:35
@mlen108
Copy link
Contributor Author

mlen108 commented Nov 25, 2014

Thanks!

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

Successfully merging this pull request may close these issues.

5 participants