Skip to content

Commit

Permalink
fix: respond to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Sep 16, 2024
1 parent 29fd300 commit 309cc65
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
7 changes: 0 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,3 @@ repos:
- types-aiobotocore[essential]
- boto3-stubs[essential]
exclude: ^(diracx-client/src/diracx/client/|diracx-[a-z]+/tests/|diracx-testing/|build)

- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
hooks:
- id: pyupgrade
args: ["--py311-plus"]
exclude: ^(diracx-client/src/diracx/client/|diracx-cli/tests/|diracx-cli/src/diracx/cli/)
4 changes: 2 additions & 2 deletions diracx-api/tests/test_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ async def test_upload_download_sandbox(tmp_path, with_cli_login, caplog):
input_files = []

input_file = input_directory / "input.dat"
input_file.write_bytes(secrets.token_bytes(1024))
input_file.write_bytes(secrets.token_bytes(512))
input_files.append(input_file)

input_file = input_directory / "a" / "b" / "c" / "nested.dat"
input_file.parent.mkdir(parents=True)
input_file.write_bytes(secrets.token_bytes(1024))
input_file.write_bytes(secrets.token_bytes(512))
input_files.append(input_file)

# Upload the sandbox
Expand Down
1 change: 1 addition & 0 deletions diracx-db/tests/jobs/test_jobDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ async def job_db(tmp_path):
await conn.run_sync(job_db.metadata.create_all)
yield job_db


async def test_search_parameters(job_db):
"""Test that we can search specific parameters for jobs in the database."""
async with job_db as job_db:
Expand Down

0 comments on commit 309cc65

Please sign in to comment.