Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ develop =
build<2
poethepoet<1
pip-review<2 # Use `pip-review --local --interactive` to upgrade outdated packages.
ruff<0.12;python_version>='3.7'
ruff<0.13;python_version>='3.7'
twine<7


Expand Down
8 changes: 4 additions & 4 deletions test/test_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ async def fetch_dashboard(async_client, uid):

tasks = []

for folder in folders:
for folder in folders[:2]:
if folder["id"] > 0: # someone created an entry with a negative id...
tasks.append(fetch_dashboard(grafana, folder["uid"]))
if len(tasks) == 4:
break
dashboards = await grafana.search.search_dashboards(folder_uids=[folder["uid"]])
for dashboard in dashboards[:4]:
tasks.append(fetch_dashboard(grafana, dashboard["uid"]))

results = await asyncio.gather(*tasks)

Expand Down
Loading