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 Apr 10, 2024
1 parent d424d81 commit 01b43f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions extensions/mydiracx/mydiracx-db/tests/test_dummyDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
from uuid import uuid4

import pytest

from diracx.core.exceptions import InvalidQueryError
from mydiracx.db.sql.dummy.db import DummyDB
from diracx.db.sql.utils import SQLDBUnavailable

from mydiracx.db.sql.dummy.db import DummyDB

# Each DB test class must defined a fixture looking like this one
# It allows to get an instance of an in memory DB,

Expand Down
3 changes: 2 additions & 1 deletion extensions/mydiracx/mydiracx-routers/tests/test_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ def test_write(normal_user_client):
assert r.status_code == 200
assert r.json()


def test_read(normal_user_client):
r = test_client.get("/api/mymanager/get_owners")
assert r.status_code == 200
assert r.json()
assert r.json()[0] == 'username'
assert r.json()[0] == "username"

0 comments on commit 01b43f1

Please sign in to comment.