Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PK_Optimizer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Tu, Ethan
PK_Optimizer
Commits
e5df3f6a
Commit
e5df3f6a
authored
4 years ago
by
Tu, Ethan
Browse files
Options
Downloads
Patches
Plain Diff
Fixing unit testin
parent
b433d7a7
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
pk_optimizer/test/test_pk_one_comp.py
+2
-3
2 additions, 3 deletions
pk_optimizer/test/test_pk_one_comp.py
with
2 additions
and
3 deletions
pk_optimizer/test/test_pk_one_comp.py
+
2
−
3
View file @
e5df3f6a
...
...
@@ -36,10 +36,9 @@ def test_pk1_init():
def
test_pk1_diff_file
():
"""
This is a test for initializing the pk1comp class
with a specific chosen file
"""
pk2
=
pk_one_comp
(
filename
=
'
CTPERF005_
st
res
s
.csv
'
)
pk2
=
pk_one_comp
(
filename
=
'
CTPERF005_res
t
.csv
'
)
#Test directory is same as one given
assert
pk2
.
wd
==
pathlib
.
Path
(
'
Data
'
).
absolute
()
assert
pk2
.
filename
==
'
CTPERF005_stress.csv
'
assert
pk2
.
filename
==
'
CTPERF005_rest.csv
'
assert
pk2
.
flow
==
1
/
60
assert
pk2
.
visf
==
0.15
assert
pk2
.
baseline
==
60
...
...
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