Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MLAir
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
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
esde
machine-learning
MLAir
Commits
4d6f4dee
Commit
4d6f4dee
authored
4 years ago
by
leufen1
Browse files
Options
Downloads
Patches
Plain Diff
tests are now up-to-date
parent
9d97c483
No related branches found
No related tags found
3 merge requests
!226
Develop
,
!225
Resolve "release v1.2.0"
,
!198
Resolve "REFAC: "bad" stations do not report which variable is missing"
Pipeline
#53994
passed
4 years ago
Stage: test
Stage: docs
Stage: pages
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_join.py
+5
-4
5 additions, 4 deletions
test/test_join.py
with
5 additions
and
4 deletions
test/test_join.py
+
5
−
4
View file @
4d6f4dee
...
...
@@ -26,7 +26,7 @@ class TestDownloadJoin:
with
pytest
.
raises
(
EmptyQueryResult
)
as
e
:
download_join
(
"
DEBW107
"
,
{
"
o3
"
:
"
dma8eu
"
},
"
traffic
"
)
assert
e
.
value
.
args
[
-
1
]
==
"
No data found for variables {
'
o3
'
} and options station=[
'
DEBW107
'
], type=traffic,
"
\
"
network=None, origin={
'
o3
'
:
''
} in JOIN.
"
"
network=None, origin={} in JOIN.
"
def
test_download_incomplete
(
self
):
with
pytest
.
raises
(
EmptyQueryResult
)
as
e
:
...
...
@@ -64,11 +64,12 @@ class TestLoadSeriesInformation:
def
test_standard_query
(
self
):
expected_subset
=
{
'
o3
'
:
23031
,
'
no2
'
:
39002
,
'
temp
'
:
85584
,
'
wspeed
'
:
17060
}
assert
expected_subset
.
items
()
<
=
load_series_information
([
'
DEBW107
'
],
None
,
None
,
join_settings
()[
0
],
{})
.
items
()
res
,
orig
=
load_series_information
([
'
DEBW107
'
],
None
,
None
,
join_settings
()[
0
],
{})
assert
expected_subset
.
items
()
<=
res
.
items
()
def
test_empty_result
(
self
):
assert
load_series_information
([
'
DEBW107
'
],
"
traffic
"
,
None
,
join_settings
()[
0
],
{})
==
{}
res
,
orig
=
load_series_information
([
'
DEBW107
'
],
"
traffic
"
,
None
,
join_settings
()[
0
],
{})
assert
res
==
{}
class
TestSelectDistinctSeries
:
...
...
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