|
142 | 142 | dataset = JuliaHub.dataset(blobname; auth) |
143 | 143 | @test dataset.description == "some blob" |
144 | 144 | @test dataset.tags == ["x", "y", "z"] |
145 | | - @test dataset._config["groups"] == [] |
146 | | - @test dataset._config["visibility"] == "private" |
147 | | - @test dataset._config["license"] == Dict{String, Any}( |
| 145 | + @test dataset._json["groups"] == [] |
| 146 | + @test dataset._json["visibility"] == "private" |
| 147 | + @test dataset._json["license"] == Dict{String, Any}( |
148 | 148 | "name" => "Other", |
149 | 149 | "spdx_id" => "NOASSERTION", |
150 | 150 | "text" => "All rights reserved", |
|
155 | 155 | dataset = JuliaHub.dataset(blobname; auth) |
156 | 156 | @test dataset.description == "some blob" |
157 | 157 | @test dataset.tags == ["x", "y", "z"] |
158 | | - @test dataset._config["groups"] == [] |
159 | | - @test dataset._config["visibility"] == "private" |
160 | | - @test dataset._config["license"] == Dict{String, Any}( |
| 158 | + @test dataset._json["groups"] == [] |
| 159 | + @test dataset._json["visibility"] == "private" |
| 160 | + @test dataset._json["license"] == Dict{String, Any}( |
161 | 161 | "name" => "Other", |
162 | 162 | "spdx_id" => "NOASSERTION", |
163 | 163 | "text" => "All rights reserved", |
|
170 | 170 | dataset = JuliaHub.dataset(blobname; auth) |
171 | 171 | @test dataset.description == "new description" |
172 | 172 | @test dataset.tags == ["x", "y", "z"] |
173 | | - @test dataset._config["groups"] == [] |
174 | | - @test dataset._config["visibility"] == "private" |
175 | | - @test dataset._config["license"] == Dict{String, Any}( |
| 173 | + @test dataset._json["groups"] == [] |
| 174 | + @test dataset._json["visibility"] == "private" |
| 175 | + @test dataset._json["license"] == Dict{String, Any}( |
176 | 176 | "name" => "Other", |
177 | 177 | "spdx_id" => "NOASSERTION", |
178 | 178 | "text" => "All rights reserved", |
|
186 | 186 | dataset = JuliaHub.dataset(blobname; auth) |
187 | 187 | @test dataset.description == "new description" |
188 | 188 | @test dataset.tags == ["foo", "bar"] |
189 | | - @test Set(dataset._config["groups"]) == Set(new_groups) |
190 | | - @test dataset._config["visibility"] == "public" |
191 | | - @test dataset._config["license"] == Dict{String, Any}( |
| 189 | + @test Set(dataset._json["groups"]) == Set(new_groups) |
| 190 | + @test dataset._json["visibility"] == "public" |
| 191 | + @test dataset._json["license"] == Dict{String, Any}( |
192 | 192 | "name" => "Other", |
193 | 193 | "spdx_id" => "NOASSERTION", |
194 | 194 | "text" => "All rights reserved", |
|
197 | 197 | # License updates |
198 | 198 | JuliaHub.update_dataset(dataset.name; auth, license="MIT") |
199 | 199 | dataset = JuliaHub.dataset(blobname; auth) |
200 | | - @test dataset._config["license"] == Dict{String, Any}( |
| 200 | + @test dataset._json["license"] == Dict{String, Any}( |
201 | 201 | "name" => "MIT License", |
202 | 202 | "spdx_id" => "MIT", |
203 | 203 | "text" => nothing, |
|
207 | 207 | dataset.name; auth, license=(:text, "hello license my old friend") |
208 | 208 | ) |
209 | 209 | dataset = JuliaHub.dataset(blobname; auth) |
210 | | - @test dataset._config["license"] == Dict{String, Any}( |
| 210 | + @test dataset._json["license"] == Dict{String, Any}( |
211 | 211 | "name" => "Other", |
212 | 212 | "spdx_id" => "NOASSERTION", |
213 | 213 | "text" => "hello license my old friend", |
|
0 commit comments