Skip to content

Commit 61bb651

Browse files
committed
Remove outdated test_git_works_with_editable_non_origin_repo().
This test has been replaced by test_freeze_editable_git_with_no_remote() in test_freeze.py, with an updated and different test expectation.
1 parent 526ac40 commit 61bb651

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

tests/functional/test_freeze.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ def test_freeze_editable_git_with_no_remote(script, tmpdir):
146146
script.pip('install', '-e', pkg_path)
147147
result = script.pip('freeze')
148148

149+
assert result.stderr == ''
150+
149151
# We need to apply os.path.normcase() to the path since that is what
150152
# the freeze code does.
151153
expected = textwrap.dedent("""\

tests/functional/test_install_vcs_git.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -367,20 +367,6 @@ def test_git_with_ambiguous_revs(script):
367367
result.assert_installed('version-pkg', with_files=['.git'])
368368

369369

370-
def test_git_works_with_editable_non_origin_repo(script):
371-
# set up, create a git repo and install it as editable from a local
372-
# directory path
373-
version_pkg_path = _create_test_package(script)
374-
script.pip('install', '-e', version_pkg_path.abspath)
375-
376-
# 'freeze'ing this should not fall over, but should result in stderr output
377-
# warning
378-
result = script.pip('freeze', expect_stderr=True)
379-
assert "Error when trying to get requirement" in result.stderr
380-
assert "Could not determine repository location" in result.stdout
381-
assert "version-pkg==0.1" in result.stdout
382-
383-
384370
def test_editable__no_revision(script):
385371
"""
386372
Test a basic install in editable mode specifying no revision.

0 commit comments

Comments
 (0)