diff --git a/test/fixtures/compile-infer_poetry_version.stderr.txt b/test/fixtures/compile-infer_poetry_version.stderr.txt new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/compile-infer_poetry_version.stdout.txt b/test/fixtures/compile-infer_poetry_version.stdout.txt new file mode 100644 index 0000000..e69de29 diff --git a/test/test-compile b/test/test-compile index f181da9..e904db1 100644 --- a/test/test-compile +++ b/test/test-compile @@ -9,6 +9,11 @@ run_test sanity-2 compile BUILD_DIR CACHE_DIR cp fixtures/poetry.lock-valid "$INPUT_DIR"/poetry.lock run_test no_vars_success compile "$INPUT_DIR" CACHE_DIR fixtures/env_dir +cp fixtures/poetry.lock-valid "$INPUT_DIR"/poetry.lock +# add comment containing the version of Poetry used create the lock file +sed -i '1i# This file is automatically @generated by Poetry 1.6.0 and should not be changed by hand.' "$INPUT_DIR"/poetry.lock +run_test infer_poetry_version compile "$INPUT_DIR" CACHE_DIR fixtures/env_dir + cp fixtures/poetry.lock-valid_exact_version_specifier "$INPUT_DIR"/poetry.lock run_test exact_version_specifier compile "$INPUT_DIR" CACHE_DIR fixtures/env_dir