From cfd08df9b638f51dc5b43af0c9efb4e768a8169f Mon Sep 17 00:00:00 2001 From: tan Date: Mon, 17 Nov 2025 16:33:17 +0530 Subject: [PATCH 1/2] fix(test): project check for unattached dataset Datasets that are not attached to projects seem to not have the `project` attribute returned. Adjusting the check in tests. This also matches to how the JuliaHub api tests do this check [here](https://github.com/JuliaComputing/JuliaHub/blob/0c1d7d512219454ce99b58efd2f3587b25753242/tests/api/juliaruncloud/datasets.jl#L418). --- test/projects-live.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/projects-live.jl b/test/projects-live.jl index eb0b13c30..cc6cfdbcf 100644 --- a/test/projects-live.jl +++ b/test/projects-live.jl @@ -76,7 +76,7 @@ try @test project_dataset.project === nothing @test length(project_dataset.versions) == 1 # TODO: add this properly to DatasetVersion? - @test project_dataset._json["versions"][1]["project"] === nothing + @test get(project_dataset._json["versions"][1], "project", nothing) === nothing @test project_dataset._json["versions"][1]["uploader"]["username"] == auth.username # The authentication object we use does not have a project associated with it From 32a3ac4b4fbafd8c1a6ae8c44f7d7df012fb0015 Mon Sep 17 00:00:00 2001 From: Tanmay Mohapatra Date: Mon, 17 Nov 2025 19:53:49 +0530 Subject: [PATCH 2/2] Update test/projects-live.jl Co-authored-by: Morten Piibeleht --- test/projects-live.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/projects-live.jl b/test/projects-live.jl index cc6cfdbcf..56e00d621 100644 --- a/test/projects-live.jl +++ b/test/projects-live.jl @@ -76,7 +76,7 @@ try @test project_dataset.project === nothing @test length(project_dataset.versions) == 1 # TODO: add this properly to DatasetVersion? - @test get(project_dataset._json["versions"][1], "project", nothing) === nothing + @test !haskey(project_dataset._json["versions"][1], "project") @test project_dataset._json["versions"][1]["uploader"]["username"] == auth.username # The authentication object we use does not have a project associated with it