Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SaQC
Manage
Activity
Members
Labels
Plan
Issues
36
Issue boards
Milestones
Wiki
Code
Merge requests
8
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rdm-software
SaQC
Commits
a5b93135
Commit
a5b93135
authored
4 years ago
by
Bert Palm
🎇
Browse files
Options
Downloads
Patches
Plain Diff
simplyfied tests
parent
12a648b0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!218
Flags
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/flagger/test_history.py
+9
-12
9 additions, 12 deletions
test/flagger/test_history.py
with
9 additions
and
12 deletions
test/flagger/test_history.py
+
9
−
12
View file @
a5b93135
...
...
@@ -194,12 +194,11 @@ def __hist():
@pytest.mark.parametrize
(
'
s, max_val
'
,
[
(
pd
.
Series
(
val
,
index
=
range
(
6
),
dtype
=
float
),
max_val
)
for
val
,
max_val
in
zip
(
[
0
,
1
,
np
.
nan
,
1
,
0
],
[
0
,
1
,
1
,
1
,
1
]
# expected max-val
)
(
pd
.
Series
(
0
,
index
=
range
(
6
),
dtype
=
float
),
0
),
(
pd
.
Series
(
1
,
index
=
range
(
6
),
dtype
=
float
),
1
),
(
pd
.
Series
(
np
.
nan
,
index
=
range
(
6
),
dtype
=
float
),
1
),
(
pd
.
Series
(
1
,
index
=
range
(
6
),
dtype
=
float
),
1
),
(
pd
.
Series
(
0
,
index
=
range
(
6
),
dtype
=
float
),
1
),
])
def
test_append
(
__hist
,
s
,
max_val
):
hist
=
__hist
...
...
@@ -211,12 +210,10 @@ def test_append(__hist, s, max_val):
# this test append more rows to the resulting
# FH from the former test
@pytest.mark.parametrize
(
'
s, max_val
'
,
[
(
pd
.
Series
(
val
,
index
=
range
(
6
),
dtype
=
float
),
max_val
)
for
val
,
max_val
in
zip
(
[
0
,
1
,
np
.
nan
,
0
],
[
0
,
1
,
1
,
0
],
# expected max-val
)
(
pd
.
Series
(
0
,
index
=
range
(
6
),
dtype
=
float
),
0
),
(
pd
.
Series
(
1
,
index
=
range
(
6
),
dtype
=
float
),
1
),
(
pd
.
Series
(
np
.
nan
,
index
=
range
(
6
),
dtype
=
float
),
1
),
(
pd
.
Series
(
0
,
index
=
range
(
6
),
dtype
=
float
),
0
),
])
def
test_append_force
(
__hist
,
s
,
max_val
):
hist
=
__hist
...
...
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