Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
brian-dashboard-manager
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
geant-swd
brian
brian-dashboard-manager
Commits
628cb491
Commit
628cb491
authored
1 month ago
by
Pelle Koster
Browse files
Options
Downloads
Patches
Plain Diff
clean up test file imports
parent
b95b7e5c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/provision/test_provision.py
+9
-13
9 additions, 13 deletions
test/provision/test_provision.py
with
9 additions
and
13 deletions
test/provision/test_provision.py
+
9
−
13
View file @
628cb491
import
re
import
pytest
import
pytest
from
brian_dashboard_manager.provision
import
FOLDERS
,
populate_folders_for_organization
import
responses
from
brian_dashboard_manager.provision
import
(
FOLDERS
,
populate_folders_for_organization
,
provision
,
)
from
brian_dashboard_manager.provision.helpers
import
get_nren_interface_data
from
brian_dashboard_manager.provision.helpers
import
get_nren_interface_data
from
brian_dashboard_manager.provision.strategies
import
(
from
brian_dashboard_manager.provision.strategies
import
(
AggregateDashboardStrategy
,
AggregateDashboardStrategy
,
...
@@ -207,9 +214,7 @@ class TestNrenAccessFolder(_TestFolder):
...
@@ -207,9 +214,7 @@ class TestNrenAccessFolder(_TestFolder):
"
speed
"
:
42949672960
,
"
speed
"
:
42949672960
,
"
status
"
:
"
operational
"
,
"
status
"
:
"
operational
"
,
}
}
result
=
get_nren_interface_data
(
result
=
get_nren_interface_data
(
"
GEANT
"
,
services
=
[
service
],
interfaces
=
[])
"
GEANT
"
,
services
=
[
service
],
interfaces
=
[]
)
assert
"
mx1.sof.bg
"
in
result
[
"
SERVICES
"
][
0
][
"
title
"
]
assert
"
mx1.sof.bg
"
in
result
[
"
SERVICES
"
][
0
][
"
title
"
]
...
@@ -514,14 +519,6 @@ class TestGWSInDirect(_TestFolder):
...
@@ -514,14 +519,6 @@ class TestGWSInDirect(_TestFolder):
assert
dashboards
[
2
].
name
==
"
GWS Indirect - ROEDUNET
"
assert
dashboards
[
2
].
name
==
"
GWS Indirect - ROEDUNET
"
assert
len
(
dashboards
[
2
].
render
()[
"
panels
"
])
==
2
assert
len
(
dashboards
[
2
].
render
()[
"
panels
"
])
==
2
# flake8: noqa
import
re
import
pytest
import
responses
from
brian_dashboard_manager.provision
import
provision
@responses.activate
@responses.activate
def
test_provision
(
data_config
,
mock_grafana
,
reporting_provider
,
populate_inventory
):
def
test_provision
(
data_config
,
mock_grafana
,
reporting_provider
,
populate_inventory
):
...
@@ -552,4 +549,3 @@ def test_provision_with_errors(
...
@@ -552,4 +549,3 @@ def test_provision_with_errors(
assert
has_errors
assert
has_errors
assert
'
{
"
error
"
:
"
error
"
}
'
in
caplog
.
text
assert
'
{
"
error
"
:
"
error
"
}
'
in
caplog
.
text
assert
"
Error when creating dashboard
"
in
caplog
.
text
assert
"
Error when creating dashboard
"
in
caplog
.
text
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