Skip to content

Commit

Permalink
Update snaps to use latest schema version
Browse files Browse the repository at this point in the history
  • Loading branch information
annakrystalli committed Mar 6, 2024
1 parent 78d8fe1 commit 6117ba3
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 33 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/create_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
create_config(rounds)
Output
$schema_version
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"
$rounds
$rounds[[1]]
Expand Down Expand Up @@ -105,7 +105,7 @@
attr(,"class")
[1] "config" "list"
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

# create_config functions error correctly

Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/_snaps/create_model_task.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
attr(,"class")
[1] "model_task" "list"
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

---

Expand Down Expand Up @@ -249,7 +249,7 @@
attr(,"class")
[1] "model_task" "list"
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

# create_output_type_point functions error correctly

Expand Down Expand Up @@ -308,6 +308,6 @@
x `schema_id` attributes are not consistent across all arguments.
Argument `schema_id` attributes:
* task_ids : invalid_schema_id
* output_type : https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json
* target_metadata : https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json
* output_type : https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json
* target_metadata : https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json

6 changes: 3 additions & 3 deletions tests/testthat/_snaps/create_model_tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
attr(,"n")
[1] 1
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

---

Expand Down Expand Up @@ -361,7 +361,7 @@
attr(,"n")
[1] 2
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

# create_model_tasks functions error correctly

Expand Down Expand Up @@ -393,5 +393,5 @@
x `schema_id` attributes are not consistent across all items.
Item `schema_id` attributes:
* Item 1 : invalid_schema_id
* Item 2 : https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json
* Item 2 : https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json

2 changes: 1 addition & 1 deletion tests/testthat/_snaps/create_output_type.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
attr(,"n")
[1] 3
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

# create_output_type functions error correctly

Expand Down
18 changes: 9 additions & 9 deletions tests/testthat/_snaps/create_output_type_item.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
attr(,"class")
[1] "output_type_item" "list"
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

---

Expand Down Expand Up @@ -54,7 +54,7 @@
attr(,"class")
[1] "output_type_item" "list"
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

---

Expand All @@ -79,7 +79,7 @@
attr(,"class")
[1] "output_type_item" "list"
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

---

Expand Down Expand Up @@ -177,7 +177,7 @@
attr(,"class")
[1] "output_type_item" "list"
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

---

Expand Down Expand Up @@ -208,7 +208,7 @@
attr(,"class")
[1] "output_type_item" "list"
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

---

Expand Down Expand Up @@ -240,7 +240,7 @@
attr(,"class")
[1] "output_type_item" "list"
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

---

Expand Down Expand Up @@ -272,7 +272,7 @@
attr(,"class")
[1] "output_type_item" "list"
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

---

Expand All @@ -297,7 +297,7 @@
attr(,"class")
[1] "output_type_item" "list"
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

---

Expand Down Expand Up @@ -415,5 +415,5 @@
attr(,"class")
[1] "output_type_item" "list"
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

4 changes: 2 additions & 2 deletions tests/testthat/_snaps/create_round.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
attr(,"round_id")
[1] "round_1"
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

---

Expand Down Expand Up @@ -211,7 +211,7 @@
attr(,"round_id")
[1] "origin_date"
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

# create_round name matching works correctly

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/create_rounds.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
attr(,"n")
[1] 1
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

---

Expand Down Expand Up @@ -331,7 +331,7 @@
attr(,"n")
[1] 2
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

# create_round errors correctly

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/create_target_metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
attr(,"n")
[1] 2
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

# create_target_metadata functions error correctly

Expand Down Expand Up @@ -123,5 +123,5 @@
x `schema_id` attributes are not consistent across all items.
Item `schema_id` attributes:
* Item 1 : invalid_schema
* Item 2 : https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json
* Item 2 : https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json

4 changes: 2 additions & 2 deletions tests/testthat/_snaps/create_target_metadata_item.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
attr(,"class")
[1] "target_metadata_item" "list"
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

---

Expand Down Expand Up @@ -61,7 +61,7 @@
attr(,"class")
[1] "target_metadata_item" "list"
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

# create_target_metadata_item functions error correctly

Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/_snaps/create_task_id.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
attr(,"class")
[1] "task_id" "list"
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

---

Expand All @@ -33,7 +33,7 @@
attr(,"class")
[1] "task_id" "list"
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

---

Expand All @@ -52,7 +52,7 @@
attr(,"class")
[1] "task_id" "list"
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

---

Expand All @@ -70,7 +70,7 @@
attr(,"class")
[1] "task_id" "list"
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

# create_task_id errors correctly

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/create_task_ids.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
attr(,"n")
[1] 5
attr(,"schema_id")
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json"
[1] "https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json"

# create_task_ids functions error correctly

Expand Down Expand Up @@ -89,5 +89,5 @@
x `schema_id` attributes are not consistent across all items.
Item `schema_id` attributes:
* Item 1 : invalid_schema
* Item 2 : https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.0/tasks-schema.json
* Item 2 : https://raw.githubusercontent.com/Infectious-Disease-Modeling-Hubs/schemas/main/v2.0.1/tasks-schema.json

0 comments on commit 6117ba3

Please sign in to comment.