Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
collectr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DREAL Pays de la Loire
Centre de Services de la Donnée
ADL
collectr
Commits
ece13395
Commit
ece13395
authored
4 months ago
by
ronan.vignard
Browse files
Options
Downloads
Patches
Plain Diff
Nettoyage et ajout de skip_on_ci()
parent
afea57cb
No related branches found
No related tags found
Loading
Pipeline
#534447
passed
4 months ago
Stage: build
Stage: test
Stage: pkgdown
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/testthat/test-modify_column_type.R
+1
-15
1 addition, 15 deletions
tests/testthat/test-modify_column_type.R
with
1 addition
and
15 deletions
tests/testthat/test-modify_column_type.R
+
1
−
15
View file @
ece13395
...
...
@@ -18,27 +18,13 @@ test_that("modify_column_type works", {
role
=
"runner"
),
expected
=
TRUE
)
# Mock de la fonction table_exists pour simuler l'absence de la table
mockery
::
stub
(
modify_column_type
,
"table_exists"
,
function
(
...
)
FALSE
)
skip_on_ci
()
# Vérification qu'une erreur est retournée en cas d'absence de la table à modifier
expect_error
(
object
=
modify_column_type
(
host
=
"localhost"
,
database
=
"collectr"
,
schema
=
"public"
,
table
=
"ghost"
,
role
=
"runner"
),
regexp
=
"La table spécifiée n'existe pas dans la base de données."
)
with_mocked_bindings
(
{
expect_error
(
object
=
modify_column_type
(
host
=
"localhost"
,
database
=
"collectr"
,
schema
=
"public"
,
table
=
"ghost"
,
role
=
"runner"
),
regexp
=
"La table spécifiée n'existe pas dans la base de données."
)
},
table_exists
=
function
(
...
)
FALSE
# Simule que la table n'existe pas
)
})
test_that
(
"modify_column_type fails"
,
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment