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
4 changes: 1 addition & 3 deletions shard_core/web/protected/identities.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ async def put_identity(i: InputIdentity):
if not existing:
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND)
update_data = {
k: v
for k, v in i.model_dump(exclude_unset=True).items()
if k != "id"
k: v for k, v in i.model_dump(exclude_unset=True).items() if k != "id"
}
return await identity_service.update_identity(i.id, update_data)
else:
Expand Down
6 changes: 5 additions & 1 deletion tests/test_call_peer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
from requests_http_signature import HTTPSignatureAuth

from shard_core.data_model.identity import OutputIdentity
from tests.util import verify_signature_auth, modify_request_like_traefik_forward_auth, install_app
from tests.util import (
verify_signature_auth,
modify_request_like_traefik_forward_auth,
install_app,
)


async def test_call_peer_from_app_basic(app_client, peer_mock_requests):
Expand Down
1 change: 0 additions & 1 deletion tests/test_migration/test_migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
)
from shard_core.database.tinydb_migration import migrate_tinydb_data


SAMPLE_TINYDB = Path(__file__).parent.parent / "fixtures" / "sample_tinydb.json"


Expand Down
Loading
Loading