Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve detection of installed packages in an environment #2722

Merged
merged 3 commits into from
Jul 31, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
tests: remove deprecated use of allows-prerelease
  • Loading branch information
abn committed Jul 30, 2020
commit e68797d754e0ca487d0162bd88dbf4408335898e
2 changes: 1 addition & 1 deletion tests/fixtures/complete.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ toml = "^0.9"
# Dependencies with extras
requests = { version = "^2.13", extras = [ "security" ] }
# Python specific dependencies with prereleases allowed
pathlib2 = { version = "^2.2", python = "~2.7", allows-prereleases = true }
pathlib2 = { version = "^2.2", python = "~2.7", allow-prereleases = true }
# Git dependencies
cleo = { git = "https://github.com/sdispater/cleo.git", branch = "master" }

Expand Down
2 changes: 1 addition & 1 deletion tests/installation/test_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ def test_run_with_prereleases(installer, locker, repo, package):
repo.add_package(package_a)
repo.add_package(package_b)

package.add_dependency("A", {"version": "*", "allows-prereleases": True})
package.add_dependency("A", {"version": "*", "allow-prereleases": True})
package.add_dependency("B", "^1.1")

installer.update(True)
Expand Down
2 changes: 1 addition & 1 deletion tests/installation/test_installer_old.py
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ def test_run_with_prereleases(installer, locker, repo, package):
repo.add_package(package_a)
repo.add_package(package_b)

package.add_dependency("A", {"version": "*", "allows-prereleases": True})
package.add_dependency("A", {"version": "*", "allow-prereleases": True})
package.add_dependency("B", "^1.1")

installer.update(True)
Expand Down