Skip to content
Snippets Groups Projects
Unverified Commit baa5e3fe authored by Siraj R Aizlewood's avatar Siraj R Aizlewood
Browse files

Fixed PyTest Fail

The test

TestRouteLayer::test_query_with_no_index

was failing because when it ran

assert route_layer("Anything").name is None

There were no Routes defined yet, and this meant that

route = [route for route in self.routes if route.name == top_class][0] was raising an error.

If no routes are defined then we can just defualt to RouteChoice().
parent 44f81658
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment