Skip to content

Commit

Permalink
Remove outdated test_git_works_with_editable_non_origin_repo().
Browse files Browse the repository at this point in the history
This test has been replaced by test_freeze_editable_git_with_no_remote()
in test_freeze.py, with an updated and different test expectation.
  • Loading branch information
cjerdonek committed Dec 21, 2018
1 parent 526ac40 commit 61bb651
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
2 changes: 2 additions & 0 deletions tests/functional/test_freeze.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ def test_freeze_editable_git_with_no_remote(script, tmpdir):
script.pip('install', '-e', pkg_path)
result = script.pip('freeze')

assert result.stderr == ''

# We need to apply os.path.normcase() to the path since that is what
# the freeze code does.
expected = textwrap.dedent("""\
Expand Down
14 changes: 0 additions & 14 deletions tests/functional/test_install_vcs_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,20 +367,6 @@ def test_git_with_ambiguous_revs(script):
result.assert_installed('version-pkg', with_files=['.git'])


def test_git_works_with_editable_non_origin_repo(script):
# set up, create a git repo and install it as editable from a local
# directory path
version_pkg_path = _create_test_package(script)
script.pip('install', '-e', version_pkg_path.abspath)

# 'freeze'ing this should not fall over, but should result in stderr output
# warning
result = script.pip('freeze', expect_stderr=True)
assert "Error when trying to get requirement" in result.stderr
assert "Could not determine repository location" in result.stdout
assert "version-pkg==0.1" in result.stdout


def test_editable__no_revision(script):
"""
Test a basic install in editable mode specifying no revision.
Expand Down

0 comments on commit 61bb651

Please sign in to comment.