Skip to content

Commit

Permalink
Updating fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
1beb committed May 27, 2020
1 parent 3480038 commit 3d03e6f
Show file tree
Hide file tree
Showing 35 changed files with 10,230 additions and 5 deletions.
17 changes: 17 additions & 0 deletions man/as.data.frame.CategoricalVariable.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions man/with_api_fixture.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions tests/testthat/fixtures-1-2-5/app.crunch.io/api.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
structure(list(url = "https://app.crunch.io/api/", status_code = 401L,
headers = structure(list(date = "Fri, 22 May 2020 22:57:41 GMT",
`content-type` = "application/json", `content-length` = "168",
server = "nginx", `content-encoding` = "gzip", vary = "Accept-Encoding",
allow = "GET, HEAD, OPTIONS, POST"), class = c("insensitive",
"list")), all_headers = list(list(status = 401L, version = "HTTP/2",
headers = structure(list(date = "Fri, 22 May 2020 22:57:41 GMT",
`content-type` = "application/json", `content-length` = "168",
server = "nginx", `content-encoding` = "gzip", vary = "Accept-Encoding",
allow = "GET, HEAD, OPTIONS, POST"), class = c("insensitive",
"list")))), cookies = structure(list(domain = logical(0),
flag = logical(0), path = logical(0), secure = logical(0),
expiration = structure(numeric(0), class = c("POSIXct",
"POSIXt")), name = logical(0), value = logical(0)), row.names = integer(0), class = "data.frame"),
content = charToRaw("{\"status\": \"401 Unauthorized\", \"urls\": {\"login_url\": \"https://app.crunch.io/api/public/login/\", \"password_reset_url\": \"https://app.crunch.io/api/public/password_reset/\", \"public_url\": \"https://app.crunch.io/api/public/\", \"email_change_url\": \"https://app.crunch.io/api/public/change_email/\", \"password_change_url\": \"https://app.crunch.io/api/public/password_change/\", \"collect_inquires\": \"https://app.crunch.io/api/public/inquire/\"}}"),
date = structure(1590188261, class = c("POSIXct", "POSIXt"
), tzone = "GMT"), times = c(redirect = 0, namelookup = 2.6e-05,
connect = 2.7e-05, pretransfer = 7.4e-05, starttransfer = 0.312317,
total = 0.312469)), class = "response")
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"element": "shoji:entity",
"self": "https://app.crunch.io/api/datasets/6b2eb5/",
"catalogs": {
"folders": "https://app.crunch.io/api/datasets/6b2eb5/folders/",
"users": "https://app.crunch.io/api/datasets/6b2eb5/users/",
"views": "https://app.crunch.io/api/datasets/6b2eb5/views/",
"variables": "https://app.crunch.io/api/datasets/6b2eb5/variables/",
"actions": "https://app.crunch.io/api/datasets/6b2eb5/actions/",
"boxdata": "https://app.crunch.io/api/datasets/6b2eb5/boxdata/",
"filters": "https://app.crunch.io/api/datasets/6b2eb5/filters/",
"scripts": "https://app.crunch.io/api/datasets/6b2eb5/scripts/",
"permissions": "https://app.crunch.io/api/datasets/6b2eb5/permissions/",
"batches": "https://app.crunch.io/api/datasets/6b2eb5/batches/",
"tags": "https://app.crunch.io/api/datasets/6b2eb5/tags/",
"teams": "https://app.crunch.io/api/datasets/6b2eb5/teams/",
"savepoints": "https://app.crunch.io/api/datasets/6b2eb5/savepoints/",
"multitables": "https://app.crunch.io/api/datasets/6b2eb5/multitables/",
"forks": "https://app.crunch.io/api/datasets/6b2eb5/forks/",
"decks": "https://app.crunch.io/api/datasets/6b2eb5/decks/",
"parent": "https://app.crunch.io/api/datasets/",
"project": "https://app.crunch.io/api/projects/personal/",
"variables_private": "https://app.crunch.io/api/datasets/6b2eb5/variables/private/"
},
"fragments": {
"preferences": "https://app.crunch.io/api/datasets/6b2eb5/preferences/",
"stream": "https://app.crunch.io/api/datasets/6b2eb5/stream/",
"settings": "https://app.crunch.io/api/datasets/6b2eb5/settings/",
"exclusion": "https://app.crunch.io/api/datasets/6b2eb5/exclusion/",
"publish": "https://app.crunch.io/api/datasets/6b2eb5/publish/",
"state": "https://app.crunch.io/api/datasets/6b2eb5/state/",
"table": "https://app.crunch.io/api/datasets/6b2eb5/table/",
"pk": "https://app.crunch.io/api/datasets/6b2eb5/pk/",
"schema": "https://app.crunch.io/api/datasets/6b2eb5/schema/"
},
"views": {
"second_order_analysis": "https://app.crunch.io/api/datasets/6b2eb5/second_order_analysis/",
"cube": "https://app.crunch.io/api/datasets/6b2eb5/cube/",
"export": "https://app.crunch.io/api/datasets/6b2eb5/export/",
"summary": "https://app.crunch.io/api/datasets/6b2eb5/summary/",
"applied_filters": "https://app.crunch.io/api/datasets/6b2eb5/filters/applied/"
},
"description": "Detail for a given dataset",
"body": {
"maintainer": "https://app.crunch.io/api/users/0740cc/",
"current_editor": "https://app.crunch.io/api/users/0740cc/",
"creation_time": "2020-05-22T22:45:34.665000",
"streaming": "no",
"owner": "https://app.crunch.io/api/users/0740cc/",
"logo": {
"large": "https://s.crunch.io/act_app_icons/account-yougov-lrhfua-large.png",
"small": "https://s.crunch.io/act_app_icons/account-yougov-wmgadi-small.png",
"favicon": "https://s.crunch.io/act_app_icons/account-yougov-slyzix-favicon.ico"
},
"id": "6b2eb5",
"size": {
"rows": 20,
"unfiltered_rows": 20,
"columns": 10
},
"palette": {
"brand": {
"message": "#722580",
"primary": "#0064a4",
"secondary": "#107f65"
}
},
"app_settings": {

},
"start_date": null,
"owner_name": "Personal project for Brandon Bertelsen",
"description": "A dataset to illustrate the API",
"end_date": null,
"access_time": "2020-05-22T22:45:34.487000",
"current_editor_name": "Brandon Bertelsen",
"view_of": null,
"modification_time": "2020-05-22T22:45:37.521000",
"archived": false,
"permissions": {
"edit": true,
"view": true
},
"account": "https://app.crunch.io/api/accounts/b7a990/",
"name": "Example dataset",
"notes": "",
"is_published": true
},
"orders": {
"variables_weights": "https://app.crunch.io/api/datasets/6b2eb5/variables/weights/",
"variables_hier": "https://app.crunch.io/api/datasets/6b2eb5/variables/hier/",
"variables_personal": "https://app.crunch.io/api/datasets/6b2eb5/variables/personal/"
},
"urls": {
"owner_url": "https://app.crunch.io/api/projects/bf9f4f/",
"editor_url": "https://app.crunch.io/api/users/0740cc/",
"user_url": "https://app.crunch.io/api/users/0740cc/"
}
}
Loading

0 comments on commit 3d03e6f

Please sign in to comment.