Skip to content
Snippets Groups Projects
  • Siraj R Aizlewood's avatar
    baa5e3fe
    Fixed PyTest Fail · baa5e3fe
    Siraj R Aizlewood authored
    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().
    baa5e3fe
    History
    Fixed PyTest Fail
    Siraj R Aizlewood authored
    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().
Code owners
Assign users and groups as approvers for specific file changes. Learn more.