Skip to content

Commit

Permalink
explain the expected behavior of the new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ejucovy committed Jul 2, 2012
1 parent e192a41 commit 8397284
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ def test_upgrade_with_newest_already_installed():


def test_upgrade_without_unneeded_recursive_upgrades():
"""
When upgrading a single package, that package's own dependencies should not be
upgraded unnecessarily if the user doesn't explicitly ask for them to be upgraded.
"""
env = reset_env()
run_pip('install', 'INITools==0.2')

Expand All @@ -69,6 +73,11 @@ def test_upgrade_without_unneeded_recursive_upgrades():


def test_upgrade_with_needed_recursive_upgrades():
"""
When upgrading a single package A, that package's own dependencies should be
upgraded if the installed versions no longer satisfy A's requirements, even if
the user doesn't explicitly ask for them to be upgraded,
"""
env = reset_env()
to_install = abspath(join(here, 'packages', 'FSPkgUsesNewishInitools'))
result = run_pip('install', to_install)
Expand All @@ -80,6 +89,11 @@ def test_upgrade_with_needed_recursive_upgrades():


def test_upgrade_with_unneeded_recursive_upgrades_explicitly_requested():
"""
When upgrading a single package A with --upgrade-recursive, all of A's
dependencies should be upgraded as well, even if the installed versions
already satisfy A's requirements.
"""
env = reset_env()
run_pip('install', 'INITools==0.2')

Expand Down

0 comments on commit 8397284

Please sign in to comment.