Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
RadioObservatory
LOFAR
Commits
6f488829
Commit
6f488829
authored
6 years ago
by
Mattia Mancini
Browse files
Options
Downloads
Patches
Plain Diff
OSB-37
: pep8 issues
parent
147d9bbe
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!89
Monitoring maintenance Epic branch merge
,
!1
Resolve OSB-13 "Monitoringmaintenance "
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
LCU/Maintenance/DBInterface/test/controllers/test_data_generators.py
+11
-6
11 additions, 6 deletions
...ance/DBInterface/test/controllers/test_data_generators.py
with
11 additions
and
6 deletions
LCU/Maintenance/DBInterface/test/controllers/test_data_generators.py
+
11
−
6
View file @
6f488829
...
...
@@ -78,7 +78,8 @@ def generate_test_component_errors(sample_size, station_test,
component_error_list
=
[]
for
i
in
range
(
sample_size
):
component_entity
,
=
generate_test_component
(
1
,
station_test
.
station
,
expected_component_types
=
expected_component_types
)
expected_component_types
=
expected_component_types
)
component_error
=
ComponentError
()
component_error
.
station_test
=
station_test
component_error
.
component
=
component_entity
...
...
@@ -116,9 +117,11 @@ def generate_test_station_test(sample_size, station, start_datetime=TEST_START_D
:type sample_size: int
:param station: station test
'
s station
:type station: Station
:param start_datetime: end date and time of the time interval in which the station test will be generated
:param start_datetime: end date and time of the time interval in which the station test will be
generated
:type start_datetime: datetime
:param end_datetime: end date and time of the time interval in which the station test will be generated
:param end_datetime: end date and time of the time interval in which the station test will be
generated
:return: a tuple of station tests
:rtype: tuple(StationTest)
"""
...
...
@@ -171,9 +174,11 @@ def generate_test_rtsm_observation(sample_size, station, start_date=datetime(201
:type sample_size: int
:param station: RTSM Observation
'
s station
:type station: Station
:param start_date: end date and time of the time interval in which the station test will be generated
:param start_date: end date and time of the time interval in which the station test will be
generated
:type start_date: datetime
:param end_date: end date and time of the time interval in which the station test will be generated
:param end_date: end date and time of the time interval in which the station test will be
generated
:return: a tuple of RTSM Observations
:rtype: tuple(RTSMObservation)
"""
...
...
@@ -214,4 +219,4 @@ def generate_random_test_data(number_of_station,
generate_test_rtsm_error
(
number_of_rtsm_errors
,
rtsm_observation
,
expected_error_types
=
expected_error_types
,
expected_modes
=
expected_modes
)
\ No newline at end of file
expected_modes
=
expected_modes
)
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