Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
aisbf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
aisbf
Commits
ee5563af
Commit
ee5563af
authored
May 12, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: cover admin provider bootstrap marker
parent
d6e4bb66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
test_market_reference_imports.py
tests/routes/test_market_reference_imports.py
+25
-0
No files found.
tests/routes/test_market_reference_imports.py
View file @
ee5563af
...
@@ -601,6 +601,31 @@ def test_dashboard_providers_bootstrap_handles_quote_heavy_market_reference_data
...
@@ -601,6 +601,31 @@ def test_dashboard_providers_bootstrap_handles_quote_heavy_market_reference_data
assert
"alice"
in
parse_block
assert
"alice"
in
parse_block
def
test_dashboard_admin_providers_bootstrap_uses_json_parse
(
monkeypatch
):
db
=
MarketReferenceImportDbStub
()
capture
=
TemplateCapture
()
client
=
TestClient
(
app
)
_set_session_cookie
(
client
,
{
"logged_in"
:
True
,
"username"
:
"config-admin"
,
"role"
:
"admin"
,
"expires_at"
:
4102444800
,
},
)
monkeypatch
.
setattr
(
dashboard_market
,
"DatabaseRegistry"
,
RegistryStub
(
db
))
from
aisbf.routes.dashboard
import
providers
as
dashboard_providers
monkeypatch
.
setattr
(
dashboard_providers
,
"DatabaseRegistry"
,
RegistryStub
(
db
))
monkeypatch
.
setattr
(
dashboard_providers
,
"_templates"
,
capture
)
response
=
client
.
get
(
"/dashboard/providers"
)
assert
response
.
status_code
==
200
assert
"let providersData = JSON.parse("
in
response
.
text
def
test_dashboard_rotations_renders_market_reference_alongside_local_rotation
(
monkeypatch
):
def
test_dashboard_rotations_renders_market_reference_alongside_local_rotation
(
monkeypatch
):
db
=
MarketReferenceImportDbStub
()
db
=
MarketReferenceImportDbStub
()
_seed_dashboard_market_reference_mix
(
db
)
_seed_dashboard_market_reference_mix
(
db
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment