Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cosmicpython/code
/ functions
Functions
133 in github.com/cosmicpython/code
⨍
Functions
133
◇
Types & classes
26
↳
Endpoints
6
Function
sqlite_bus
(sqlite_session_factory)
tests/integration/test_views.py:14
Function
subscribe_to
(channel)
tests/e2e/redis_client.py:9
Method
test_allocates
(self)
tests/unit/test_handlers.py:78
Function
test_allocating_to_a_batch_reduces_the_available_quantity
()
tests/unit/test_batches.py:5
Function
test_allocation_is_idempotent
()
tests/unit/test_batches.py:42
Function
test_allocations_view
(sqlite_bus)
tests/integration/test_views.py:25
Function
test_can_allocate_if_available_equal_to_required
()
tests/unit/test_batches.py:31
Function
test_can_allocate_if_available_greater_than_required
()
tests/unit/test_batches.py:21
Function
test_cannot_allocate_if_available_smaller_than_required
()
tests/unit/test_batches.py:26
Function
test_cannot_allocate_if_skus_do_not_match
()
tests/unit/test_batches.py:36
Function
test_change_batch_quantity_leading_to_reallocation
()
tests/e2e/test_external_events.py:11
Method
test_changes_available_quantity
(self)
tests/unit/test_handlers.py:114
Method
test_commits
(self)
tests/unit/test_handlers.py:92
Function
test_concurrent_updates_to_version_are_not_allowed
(postgres_session_factory)
tests/integration/test_uow.py:94
Function
test_deallocation
(sqlite_bus)
tests/integration/test_views.py:41
Method
test_errors_for_invalid_sku
(self)
tests/unit/test_handlers.py:85
Method
test_for_existing_product
(self)
tests/unit/test_handlers.py:68
Method
test_for_new_product
(self)
tests/unit/test_handlers.py:62
Function
test_get_by_batchref
(sqlite_session_factory)
tests/integration/test_repository.py:8
Function
test_happy_path_returns_202_and_batch_is_allocated
()
tests/e2e/test_api.py:8
Function
test_increments_version_number
()
tests/unit/test_product.py:67
Function
test_out_of_stock_email
(bus)
tests/integration/test_email.py:30
Function
test_outputs_allocated_event
()
tests/unit/test_product.py:46
Function
test_prefers_earlier_batches
()
tests/unit/test_product.py:23
Function
test_prefers_warehouse_batches_to_shipments
()
tests/unit/test_product.py:11
Method
test_reallocates_if_necessary
(self)
tests/unit/test_handlers.py:123
Function
test_records_out_of_stock_event_if_cannot_allocate
()
tests/unit/test_product.py:57
Function
test_returns_allocated_batch_ref
()
tests/unit/test_product.py:37
Function
test_rolls_back_on_error
(sqlite_session_factory)
tests/integration/test_uow.py:66
Function
test_rolls_back_uncommitted_work_by_default
(sqlite_session_factory)
tests/integration/test_uow.py:56
Method
test_sends_email_on_out_of_stock_error
(self)
tests/unit/test_handlers.py:98
Function
test_unhappy_path_returns_400_and_error_message
()
tests/e2e/test_api.py:30
Function
test_uow_can_retrieve_a_batch_and_allocate_to_it
(sqlite_session_factory)
tests/integration/test_uow.py:40
← previous
101–133 of 133, ranked by callers