Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 17, 2024
1 parent 1625a40 commit fb7b8ff
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions diracx-db/tests/jobs/test_jobDB.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from __future__ import annotations

import asyncio

import pytest

from diracx.core.exceptions import InvalidQueryError, JobNotFound
Expand Down Expand Up @@ -30,28 +28,29 @@ async def job_db(tmp_path):

async def test_search_parameters(job_db):
"""Test that we can search specific parameters for jobs in the database."""
pytest.skip("TODO: job_db.insert cannot be used anymore... need to call API to insert jobs.")

pytest.skip(
"TODO: job_db.insert cannot be used anymore... need to call API to insert jobs."
)

# async with job_db as job_db:
# total, result = await job_db.search(["JobID"], [], [])
# assert total == 0
# assert not result

# result = await asyncio.gather(
# *(
# # FIXME: need to use normal_user_client and query API.
# job_db.insert(
# f"JDL{i}",
# "owner",
# "owner_group",
# "New",
# "dfdfds",
# "lhcb",
# )
# for i in range(100)
# )
# )
# result = await asyncio.gather(
# *(
# # FIXME: need to use normal_user_client and query API.
# job_db.insert(
# f"JDL{i}",
# "owner",
# "owner_group",
# "New",
# "dfdfds",
# "lhcb",
# )
# for i in range(100)
# )
# )

async with job_db as job_db:
# Search a specific parameter: JobID
Expand Down

0 comments on commit fb7b8ff

Please sign in to comment.