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
Merge requests
!225
Resolve "release v1.2.0"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "release v1.2.0"
release_v1.2.0
into
master
Overview
0
Commits
96
Pipelines
3
Changes
1
Merged
Ghost User
requested to merge
release_v1.2.0
into
master
4 years ago
Overview
0
Commits
96
Pipelines
3
Changes
1
Expand
Closes
#257 (closed)
Edited
4 years ago
by
Ghost User
0
0
Merge request reports
Viewing commit
4d6f4dee
Prev
Next
Show latest version
1 file
+
5
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
4d6f4dee
tests are now up-to-date
· 4d6f4dee
leufen1
authored
4 years ago
test/test_join.py
+
5
−
4
Options
@@ -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
:
Loading