diff --git a/api/outdated/outdated/tests/test_parser.py b/api/outdated/outdated/tests/test_parser.py index efe3cae3..c017c6f9 100644 --- a/api/outdated/outdated/tests/test_parser.py +++ b/api/outdated/outdated/tests/test_parser.py @@ -218,7 +218,7 @@ def test_fetch_end_of_life_invalid_json(mocker, requests_mock, project): text="503 Service Temporarily Unavailable", status_code=503, ) - LockfileParser([])._get_version(("django", "4.4.1"), provider="PIP") # noqa: SLF001 + LockfileParser(project, [])._get_version(("django", "4.4.1"), provider="PIP") # noqa: SLF001 @pytest.mark.django_db() @@ -227,6 +227,7 @@ def test_fetch_end_of_life_no_overwrite_if_already_set( dependency_factory: DependencyFactory, release_version_factory: ReleaseVersionFactory, version_factory: VersionFactory, + project: models.Project, ) -> None: end_of_life = date(2025, 1, 1) @@ -248,7 +249,7 @@ def test_fetch_end_of_life_no_overwrite_if_already_set( version: models.Version = version_factory(release_version=release_version) - LockfileParser([])._get_version( # noqa: SLF001 + LockfileParser(project, [])._get_version( # noqa: SLF001 (dependency.name, version.version), provider=dependency.provider ) diff --git a/ember/app/components/project-compact.gjs b/ember/app/components/project-compact.gjs index e364b7f8..b7301697 100644 --- a/ember/app/components/project-compact.gjs +++ b/ember/app/components/project-compact.gjs @@ -19,7 +19,7 @@ function icon(status) { } function version(project) { - return project.versionedDependencies[0]; + return project.sources.at(0)?.versions.at(0); } const Dependency =