Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pygwinc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Evan Hall
pygwinc
Commits
0ff928f7
Commit
0ff928f7
authored
1 year ago
by
Lee McCuller
Browse files
Options
Downloads
Patches
Plain Diff
change the tresults folder to test_results for consistency with wield.pytest
parent
c47a7d85
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
conftest.py
+3
-3
3 additions, 3 deletions
conftest.py
with
3 additions
and
3 deletions
conftest.py
+
3
−
3
View file @
0ff928f7
...
...
@@ -71,7 +71,7 @@ def tpath_preclear(request):
def
tpath
(
request
):
"""
Fixture that takes the value of the special test-specific folder for test
run data and plots. Usually the <folder of the test>/tresults/test_name/
run data and plots. Usually the <folder of the test>/t
est_
results/test_name/
"""
tpath_raw
=
tpath_raw_make
(
request
)
...
...
@@ -84,7 +84,7 @@ def tpath(request):
def
tpath_join
(
request
):
"""
Fixture that joins subpaths to the value of the special test-specific folder for test
run data and plots. Usually the <folder of the test>/tresults/test_name/.
run data and plots. Usually the <folder of the test>/t
est_
results/test_name/.
This function should be use like test_thing.save(tpath_join(
'
output_file.png
'
))
"""
...
...
@@ -236,7 +236,7 @@ def pprint(request, tpath_join):
def
tpath_raw_make
(
request
):
if
isinstance
(
request
.
node
,
pytest
.
Function
):
return
relfile_test
(
request
.
node
.
function
.
__code__
.
co_filename
,
request
,
'
tresults
'
)
return
relfile_test
(
request
.
node
.
function
.
__code__
.
co_filename
,
request
,
'
t
est_
results
'
)
raise
RuntimeError
(
"
TPath currently only works for functions
"
)
...
...
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