Skip to content

Commit 53eabc7

Browse files
authored
Enable the poetry_cache_previous_buildpack_version test (#263)
This test checks compatibility of cached Poetry layers from previous versions of the buildpack. However, until there was at least one previous buildpack release that supported Poetry, the test had to be skipped. Now that v0.17.0 of the buildpack has been released (which includes Poetry support), we can enable this test.
1 parent 0296f71 commit 53eabc7

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

tests/poetry_test.rs

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,9 @@ fn poetry_cache_invalidation_package_manager_changed() {
154154
#[test]
155155
#[ignore = "integration test"]
156156
fn poetry_cache_previous_buildpack_version() {
157-
#![allow(unreachable_code)]
158-
// TODO: Enable this test once a previous buildpack release exists that supports Poetry.
159-
return;
160-
161157
let mut config = default_build_config("tests/fixtures/poetry_basic");
162158
config.buildpacks([BuildpackReference::Other(
163-
"docker://docker.io/heroku/buildpack-python:TODO".to_string(),
159+
"docker://docker.io/heroku/buildpack-python:0.17.0".to_string(),
164160
)]);
165161
let rebuild_config = default_build_config("tests/fixtures/poetry_basic");
166162

@@ -170,8 +166,23 @@ fn poetry_cache_previous_buildpack_version() {
170166
assert_contains!(
171167
rebuild_context.pack_stdout,
172168
&formatdoc! {"
173-
TODO
174-
"}
169+
[Determining Python version]
170+
No Python version specified, using the current default of Python {DEFAULT_PYTHON_VERSION}.
171+
To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
172+
173+
[Installing Python]
174+
Using cached Python {DEFAULT_PYTHON_VERSION}
175+
176+
[Installing Poetry]
177+
Using cached Poetry {POETRY_VERSION}
178+
179+
[Installing dependencies using Poetry]
180+
Using cached virtual environment
181+
Running 'poetry install --sync --only main'
182+
Installing dependencies from lock file
183+
184+
No dependencies to install or update
185+
"}
175186
);
176187
});
177188
});

0 commit comments

Comments
 (0)