From a6ceab8b362471451acb69d2b45e02eb482cda14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 18 Mar 2024 07:09:50 +0000 Subject: [PATCH] fix composer test --- tests/test_composer.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/test_composer.py b/tests/test_composer.py index 771a524..3d0de85 100644 --- a/tests/test_composer.py +++ b/tests/test_composer.py @@ -4,11 +4,18 @@ from nix_update.options import Options from nix_update.update import update +from nix_update.version.version import VersionPreference def test_update(helpers: conftest.Helpers) -> None: with helpers.testpkgs() as path: - opts = Options(attribute="composer", import_path=str(path)) + opts = Options( + attribute="composer", + import_path=str(path), + # For 0.14.0 we get inconsistent lock file errors + version="0.13.1", + version_preference=VersionPreference.FIXED, + ) update(opts) version = subprocess.run( [