Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SaQC
Manage
Activity
Members
Labels
Plan
Issues
35
Issue boards
Milestones
Wiki
Code
Merge requests
7
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
d54827a0
Commit
d54827a0
authored
2 years ago
by
Bert Palm
🎇
Browse files
Options
Downloads
Patches
Plain Diff
removed useless test and its dir
parent
40cfc53f
No related branches found
No related tags found
1 merge request
!462
More tests
Pipeline
#94446
passed with stage
in 2 minutes and 11 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/deprecated/__init__.py
+0
-5
0 additions, 5 deletions
tests/deprecated/__init__.py
tests/deprecated/test_deprecated.py
+0
-25
0 additions, 25 deletions
tests/deprecated/test_deprecated.py
tests/funcs/test_pattern_rec.py
+2
-4
2 additions, 4 deletions
tests/funcs/test_pattern_rec.py
with
2 additions
and
34 deletions
tests/deprecated/__init__.py
deleted
100644 → 0
+
0
−
5
View file @
40cfc53f
#!/usr/bin/env python
# SPDX-FileCopyrightText: 2021 Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
#
# SPDX-License-Identifier: GPL-3.0-or-later
This diff is collapsed.
Click to expand it.
tests/deprecated/test_deprecated.py
deleted
100644 → 0
+
0
−
25
View file @
40cfc53f
#!/usr/bin/env python
# SPDX-FileCopyrightText: 2021 Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
#
# SPDX-License-Identifier: GPL-3.0-or-later
import
pytest
from
tests.common
import
initData
from
saqc
import
SaQC
import
pandas
as
pd
import
numpy
as
np
# this tests seems to do nothing with duplicates
@pytest.mark.parametrize
(
"
data
"
,
[
initData
(
1
)])
def
test_duplicatedVariable
(
data
):
var1
=
data
.
columns
[
0
]
pflags
=
SaQC
(
data
).
flagDummy
(
var1
).
result
.
flags
if
isinstance
(
pflags
.
columns
,
pd
.
MultiIndex
):
cols
=
pflags
.
columns
.
get_level_values
(
0
).
drop_duplicates
()
assert
np
.
all
(
cols
==
[
var1
])
else
:
assert
(
pflags
.
columns
==
[
var1
]).
all
()
This diff is collapsed.
Click to expand it.
tests/funcs/test_pattern_rec.py
+
2
−
4
View file @
d54827a0
...
...
@@ -27,8 +27,8 @@ def field(data):
return
data
.
columns
[
0
]
@pytest.mark.parametrize
(
'
plot
'
,
[
True
,
False
])
@pytest.mark.parametrize
(
'
normalize
'
,
[
True
,
False
])
@pytest.mark.parametrize
(
"
plot
"
,
[
True
,
False
])
@pytest.mark.parametrize
(
"
normalize
"
,
[
True
,
False
])
def
test_flagPattern_dtw
(
plot
,
normalize
):
data
=
pd
.
Series
(
0
,
index
=
pd
.
date_range
(
start
=
"
2000
"
,
end
=
"
2001
"
,
freq
=
"
1d
"
))
data
.
iloc
[
10
:
18
]
=
[
0
,
5
,
6
,
7
,
6
,
8
,
5
,
0
]
...
...
@@ -49,5 +49,3 @@ def test_flagPattern_dtw(plot, normalize):
assert
all
(
flags
[
"
data
"
].
iloc
[
10
:
18
]
==
BAD
)
assert
all
(
flags
[
"
data
"
].
iloc
[:
9
]
==
UNFLAGGED
)
assert
all
(
flags
[
"
data
"
].
iloc
[
18
:]
==
UNFLAGGED
)
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