Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WindEnergyToolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
toolbox
WindEnergyToolbox
Commits
b6e86eab
There was a problem fetching the pipeline summary.
Commit
b6e86eab
authored
7 years ago
by
Mads M. Pedersen
Browse files
Options
Downloads
Patches
Plain Diff
updated wetb.utils.test_files.py
parent
11a5f71e
No related branches found
No related tags found
1 merge request
!38
Resolve "test_files solution is temporary"
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wetb/utils/test_files.py
+1
-6
1 addition, 6 deletions
wetb/utils/test_files.py
with
1 addition
and
6 deletions
wetb/utils/test_files.py
+
1
−
6
View file @
b6e86eab
...
...
@@ -5,11 +5,8 @@ Created on 20. jul. 2017
'''
import
os
import
wetb
import
urllib.request
from
fileinput
import
filename
import
inspect
wetb_rep_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
wetb
.
__file__
),
"
../
"
)
default_TestFile_rep_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
wetb
.
__file__
)
+
"
/../../TestFiles/
"
)
def
get_test_file
(
filename
):
if
not
os
.
path
.
isabs
(
filename
):
...
...
@@ -20,14 +17,12 @@ def get_test_file(filename):
if
os
.
path
.
exists
(
filename
):
return
filename
else
:
wetb_rep_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
wetb
.
__file__
),
"
../
"
)
return
os
.
path
.
join
(
wetb_rep_path
,
'
TestFiles
'
,
os
.
path
.
relpath
(
filename
,
wetb_rep_path
))
def
move2test_files
(
filename
,
TestFile_rep_path
=
default_TestFile_rep_path
):
wetb_rep_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
wetb
.
__file__
),
"
../
"
)
def
move2test_files
(
filename
):
dst_filename
=
os
.
path
.
join
(
wetb_rep_path
,
'
TestFiles
'
,
os
.
path
.
relpath
(
filename
,
wetb_rep_path
))
folder
=
os
.
path
.
dirname
(
dst_filename
)
if
not
os
.
path
.
exists
(
folder
):
...
...
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