Skip to content

Commit 95ce927

Browse files
authored
test: project check for unattached dataset (#115)
* 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).
1 parent 6c8f1a1 commit 95ce927

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/projects-live.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ try
7676
@test project_dataset.project === nothing
7777
@test length(project_dataset.versions) == 1
7878
# TODO: add this properly to DatasetVersion?
79-
@test project_dataset._json["versions"][1]["project"] === nothing
79+
@test !haskey(project_dataset._json["versions"][1], "project")
8080
@test project_dataset._json["versions"][1]["uploader"]["username"] == auth.username
8181

8282
# The authentication object we use does not have a project associated with it

0 commit comments

Comments
 (0)