Skip to content

Commit

Permalink
test: test coverage report post
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaakola-aiven committed Jun 12, 2024
1 parent dd2fd33 commit dc7f568
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions karapace/in_memory_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ def insert_schema_version(
)

def insert_subject(self, *, subject: Subject) -> None:
if subject is None:
print("Subject is none, coverage test")
self.subjects.setdefault(subject, SubjectData())

def get_subject_compatibility(self, *, subject: Subject) -> str | None:
Expand Down
3 changes: 3 additions & 0 deletions karapace/schema_registry_apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1205,6 +1205,9 @@ async def subject_post(
) -> None:
self._check_authorization(user, Operation.Write, f"Subject:{subject}")

if subject is None:
print("Subject is none, coverage test")

body = request.json
self.log.debug("POST with subject: %r, request: %r", subject, body)
self._validate_subject(content_type, subject)
Expand Down

0 comments on commit dc7f568

Please sign in to comment.