Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Water
dataRetrieval
Commits
1ca3f5fc
Commit
1ca3f5fc
authored
May 19, 2017
by
Laura A DeCicco
Browse files
Just in case...skip the "mock"s on cran
parent
cc74503a
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/testthat/tests_general.R
View file @
1ca3f5fc
...
...
@@ -312,6 +312,7 @@ test_that("NGWMN functions working", {
context
(
"getWebServiceData"
)
test_that
(
"long urls use POST"
,
{
testthat
::
skip_on_cran
()
url
<-
paste0
(
rep
(
"reallylongurl"
,
200
),
collapse
=
''
)
with_mock
(
RETRY
=
function
(
method
,
...
)
{
...
...
@@ -324,7 +325,9 @@ test_that("long urls use POST", {
.env
=
"httr"
)
})
test_that
(
"ngwmn urls don't use post"
,
{
testthat
::
skip_on_cran
()
url
<-
paste0
(
rep
(
"urlwithngwmn"
,
200
),
collapse
=
''
)
with_mock
(
RETRY
=
function
(
method
,
...
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment