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

Enable the poetry_cache_previous_buildpack_version test #263

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Changes from all commits
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
25 changes: 18 additions & 7 deletions tests/poetry_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,9 @@ fn poetry_cache_invalidation_package_manager_changed() {
#[test]
#[ignore = "integration test"]
fn poetry_cache_previous_buildpack_version() {
#![allow(unreachable_code)]
// TODO: Enable this test once a previous buildpack release exists that supports Poetry.
return;

let mut config = default_build_config("tests/fixtures/poetry_basic");
config.buildpacks([BuildpackReference::Other(
"docker://docker.io/heroku/buildpack-python:TODO".to_string(),
"docker://docker.io/heroku/buildpack-python:0.17.0".to_string(),
)]);
let rebuild_config = default_build_config("tests/fixtures/poetry_basic");

Expand All @@ -170,8 +166,23 @@ fn poetry_cache_previous_buildpack_version() {
assert_contains!(
rebuild_context.pack_stdout,
&formatdoc! {"
TODO
"}
[Determining Python version]
No Python version specified, using the current default of Python {DEFAULT_PYTHON_VERSION}.
To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes

[Installing Python]
Using cached Python {DEFAULT_PYTHON_VERSION}

[Installing Poetry]
Using cached Poetry {POETRY_VERSION}

[Installing dependencies using Poetry]
Using cached virtual environment
Running 'poetry install --sync --only main'
Installing dependencies from lock file

No dependencies to install or update
"}
);
});
});
Expand Down