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

Fix DefaultRouter conflict bug #536

Merged
merged 1 commit into from May 1, 2015
Merged

Fix DefaultRouter conflict bug #536

merged 1 commit into from May 1, 2015

Conversation

ghost
Copy link

@ghost ghost commented Apr 30, 2015

The DefaultRouter will now allow static routes to be placed before
simple variable ones. Placing static routes after simple variable ones
still raises a ValueError since they would be unreachable.

The DefaultRouter will now allow static routes to be placed before
simple variable ones.  Placing static routes after simple variable ones
still raises a ValueError since they would be unreachable.
@@ -206,7 +206,7 @@ def line(text, indent_offset=0):
# /foo/{id}/bar
# /foo/{name}/bar
#
assert len(nodes) == 1
assert len([node for node in nodes if node.is_var]) == 1
Copy link
Author

Choose a reason for hiding this comment

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

This is a simple test to just check there is not more than one variable, perhaps something more robust with order checking would be helpful.

@kgriffs
Copy link
Member

kgriffs commented May 1, 2015

LGTM. Thanks!

kgriffs added a commit that referenced this pull request May 1, 2015
fix(DefaultRouter): Regression with mixed static and dynamic route segments
@kgriffs kgriffs merged commit 0af00af into falconry:master May 1, 2015
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.

1 participant