diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2017-01-24 10:23:51 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2017-01-24 10:23:51 -0500 |
| commit | ba15c9294488451900766898865c024dad2bf2be (patch) | |
| tree | 7379e652426b545829107861e743e0fc12f31873 | |
| parent | 322472e4ffdc03901be1f584a548b00f1372037d (diff) | |
| download | python-setuptools-git-ba15c9294488451900766898865c024dad2bf2be.tar.gz | |
Add tests for _resolve_setup_path, including one that elicits the error reported in #913.
| -rw-r--r-- | setuptools/tests/test_develop.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/setuptools/tests/test_develop.py b/setuptools/tests/test_develop.py index 3b1b1e2d..54e199c3 100644 --- a/setuptools/tests/test_develop.py +++ b/setuptools/tests/test_develop.py @@ -122,6 +122,22 @@ class TestDevelop: # assert '0.0' not in foocmd_text +class TestResolver: + """ + TODO: These tests were written with a minimal understanding + of what _resolve_setup_path is intending to do. Come up with + more meaningful cases that look like real-world scenarios. + """ + def test_resolve_setup_path_cwd(self): + assert develop._resolve_setup_path('.', '.', '.') == '.' + + def test_resolve_setup_path_one_dir(self): + assert develop._resolve_setup_path('pkgs', '.', 'pkgs') == '../' + + def test_resolve_setup_path_one_dir_trailing_slash(self): + assert develop._resolve_setup_path('pkgs/', '.', 'pkgs') == '../' + + class TestNamespaces: @staticmethod |
