Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Aiven-Open/karapace
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c382270210fd0fd5c8b61ec819639bb568c7eb8d
Choose a base ref
..
head repository: Aiven-Open/karapace
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8f6562ad090783fb64623fc81547a39e2c709ce5
Choose a head ref
Showing with 7 additions and 6 deletions.
  1. +7 −6 tests/unit/test_in_memory_database.py
13 changes: 7 additions & 6 deletions tests/unit/test_in_memory_database.py
Original file line number Diff line number Diff line change
@@ -5,9 +5,10 @@
from karapace.in_memory_database import InMemoryDatabase, Subject


def test_find_schemas() -> None:
database = InMemoryDatabase()
subject = Subject("hello_world")
database.insert_subject(subject=subject)
expected = {subject: []}
assert database.find_schemas(include_deleted=True, latest_only=True) == expected
class TestFindSchemas:
def test_returns_empty_list_when_no_schemas(self) -> None:
database = InMemoryDatabase()
subject = Subject("hello_world")
database.insert_subject(subject=subject)
expected = {subject: []}
assert database.find_schemas(include_deleted=True, latest_only=True) == expected