-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
10,230 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
99 changes: 99 additions & 0 deletions
99
tests/testthat/fixtures-1-2-5/app.crunch.io/api/datasets/6b2eb5.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/" | ||
} | ||
} |
Oops, something went wrong.