Skip to content

Commit

Permalink
Replace backslash on Windows in path tests
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Mar 26, 2017
1 parent fb7a267 commit 1ff860a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_utils.py
Expand Up @@ -332,11 +332,11 @@ def test_get_metadata_from_file():


def test_get_asset_path():
assert get_asset_path('assets/css/rst.css', get_theme_chain('bootstrap3', ['themes'])).endswith('nikola/data/themes/base/assets/css/rst.css')
assert get_asset_path('assets/css/theme.css', get_theme_chain('bootstrap3', ['themes'])).endswith('nikola/data/themes/bootstrap3/assets/css/theme.css')
assert get_asset_path('nikola.py', get_theme_chain('bootstrap3', ['themes']), {'nikola': ''}).endswith('nikola/nikola.py')
assert get_asset_path('assets/css/rst.css', get_theme_chain('bootstrap3', ['themes'])).replace('\\', '/').endswith('nikola/data/themes/base/assets/css/rst.css')
assert get_asset_path('assets/css/theme.css', get_theme_chain('bootstrap3', ['themes'])).replace('\\', '/').endswith('nikola/data/themes/bootstrap3/assets/css/theme.css')
assert get_asset_path('nikola.py', get_theme_chain('bootstrap3', ['themes']), {'nikola': ''}).replace('\\', '/').endswith('nikola/nikola.py')
assert get_asset_path('nikola.py', get_theme_chain('bootstrap3', ['themes']), {'nikola': 'nikola'}) is None
assert get_asset_path('nikola/nikola.py', get_theme_chain('bootstrap3', ['themes']), {'nikola': 'nikola'}).endswith('nikola/nikola.py')
assert get_asset_path('nikola/nikola.py', get_theme_chain('bootstrap3', ['themes']), {'nikola': 'nikola'}).replace('\\', '/').endswith('nikola/nikola.py')


def test_get_crumbs():
Expand Down

0 comments on commit 1ff860a

Please sign in to comment.