bndr / bndr/pycycle

unit test fails

Open Beginner friendly
#8 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
363
Forks
24
PR merge metrics
No merged PRs in 30d

Description

when run "python setup.py test", 7 test case passed, but 1 failed. I think it is due the windows separator being '\' instead of '/', detailed message here

_______________________ test_get_path_from_package_name _______________________

def test_get_path_from_package_name():

func = pycycle.utils.get_path_from_package_name

> assert func('/test/one/two', 'some.package') == '/test/one/two/some/package.py'
E AssertionError: assert '/test/one/tw...e\\package.py' == '/test/one/two/some/package.py'
E - /test/one/two\some\package.py
E ? ^ ^
E + /test/one/two/some/package.py
E ? ^ ^

test_pycycle.py:12: AssertionError
===================== 1 failed, 7 passed in 0.27 seconds ======================

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with test_pycycle.py and the failing test_get_path_from_package_name case, then locate pycycle.utils.get_path_from_package_name. Check how the package name is converted into a path and run "python setup.py test". Done means the existing eight tests pass and the expected path uses '/' consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.