Skip to content
This repository was archived by the owner on Apr 16, 2023. It is now read-only.

Conversation

@LilyFirefly
Copy link
Collaborator

No description provided.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I would have expected ImportError. Is there a particular reason ValueError is more appropriate?

Copy link
Owner

Choose a reason for hiding this comment

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

It's a peculiarity of implementation, I suppose. Perhaps we should not have this limitation (though I cannot see when we would need a top-level package here.)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmm. Thinking about it a bit more, maybe ValueError is appropriate - the function is designed to work only with dotted paths. I think it should have a custom error message though.

Copy link
Owner

Choose a reason for hiding this comment

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

ValueError is appropriate - the function is designed to work only with dotted paths

Indeed.

I think it should have a custom error message though.

👍

Copy link
Owner

Choose a reason for hiding this comment

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

#28

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 4a3b2e5 on Ian-Foote:test-docstrings into accdec8 on meshy:master.

@meshy
Copy link
Owner

meshy commented Oct 7, 2014

@ian-foote thank-you for the help :)

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling d5572f6 on Ian-Foote:test-docstrings into accdec8 on meshy:master.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These tests seem complicated - they were difficult to condense into docstring summaries. Perhaps they can be simplified?

Copy link
Owner

Choose a reason for hiding this comment

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

They do. Not very DRY either. Perhaps if they were made dry, then it would look easier to have one assert per test here.

Copy link
Owner

Choose a reason for hiding this comment

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

#29

Ian Foote added 6 commits October 7, 2014 23:07
* Split tests for permanent/temporary redirects from test for the
  redirect's target url
* Simplify integration test to focus on integration
* Remove essentially duplicate integration test
* Add docstrings
@LilyFirefly
Copy link
Collaborator Author

@meshy Review?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think this refactor is an improvement, but if you disagree or think it shouldn't be in this pull-request I can easily remove it.

Copy link
Owner

Choose a reason for hiding this comment

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

I think this refactor is an improvement

So do I, thanks :)

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 48c2004 on Ian-Foote:test-docstrings into accdec8 on meshy:master.

@meshy
Copy link
Owner

meshy commented Oct 7, 2014

👍 Thank-you very much! This may be a hard standard to keep up, but I hope we can do it!

meshy added a commit that referenced this pull request Oct 7, 2014
@meshy meshy merged commit 2d71666 into meshy:master Oct 7, 2014
@LilyFirefly LilyFirefly deleted the test-docstrings branch October 7, 2014 22:54
@LilyFirefly LilyFirefly mentioned this pull request Oct 7, 2014
@LilyFirefly LilyFirefly self-assigned this Oct 7, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants