minor style cleanup

This commit is contained in:
Brian S. Stephan 2021-02-20 19:22:23 -06:00
parent 4dcc1c91c2
commit faf4a7f166
1 changed files with 2 additions and 1 deletions

View File

@ -105,7 +105,8 @@ def test_request_path_to_instance_resource_path_subdir_index(app):
def test_request_path_to_instance_resource_path_relatives_walked(app): def test_request_path_to_instance_resource_path_relatives_walked(app):
"""Test a normal URL request is transformed into the file path.""" """Test a normal URL request is transformed into the file path."""
with app.test_request_context(): with app.test_request_context():
assert request_path_to_instance_resource_path('subdir/more-subdir/../../more-metadata') == 'pages/more-metadata.md' assert (request_path_to_instance_resource_path('subdir/more-subdir/../../more-metadata') ==
'pages/more-metadata.md')
def test_request_path_to_instance_resource_path_relatives_walked_indexes_work_too(app): def test_request_path_to_instance_resource_path_relatives_walked_indexes_work_too(app):