Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BioFlow-Insight
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shareFAIR
BioFlow-Insight
Commits
05306969
Commit
05306969
authored
1 year ago
by
Bryan Brancotte
Browse files
Options
Downloads
Patches
Plain Diff
write produced code in temp file to help debug tests
parent
e1a179dc
No related branches found
No related tags found
1 merge request
!7
Return non zero code on failure
Pipeline
#13255
failed with stage
in 40 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+2
-1
2 additions, 1 deletion
.gitignore
tests/test_outils.py
+7
-2
7 additions, 2 deletions
tests/test_outils.py
with
9 additions
and
3 deletions
.gitignore
+
2
−
1
View file @
05306969
...
...
@@ -5,4 +5,5 @@ __pycache__
.venv
.idea
dist/
results*/
\ No newline at end of file
results*/
*.candidate.nf
\ No newline at end of file
This diff is collapsed.
Click to expand it.
tests/test_outils.py
+
7
−
2
View file @
05306969
import
os
import
unittest
from
src.outils
import
*
...
...
@@ -36,6 +37,10 @@ class TestOutils(unittest.TestCase):
with
open
(
"
tests/ressources/outils/remove_comments_wo.nf
"
,
'
r
'
)
as
f
:
code_wo_comments
=
f
.
read
()
self
.
assertEqual
(
remove_comments
(
code_with_comments
),
code_wo_comments
)
produced
=
remove_comments
(
code_with_comments
)
with
open
(
candidate
:
=
"
tests/ressources/outils/remove_comments_wo.candidate.nf
"
,
'
w
'
)
as
f
:
f
.
write
(
produced
)
self
.
assertEqual
(
produced
,
code_wo_comments
)
os
.
unlink
(
candidate
)
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