MCPcopy Create free account

hub / github.com/cosmicpython/code / functions

Functions133 in github.com/cosmicpython/code

Functionsqlite_bus
(sqlite_session_factory)
tests/integration/test_views.py:14
Functionsubscribe_to
(channel)
tests/e2e/redis_client.py:9
Methodtest_allocates
(self)
tests/unit/test_handlers.py:78
Functiontest_allocating_to_a_batch_reduces_the_available_quantity
()
tests/unit/test_batches.py:5
Functiontest_allocation_is_idempotent
()
tests/unit/test_batches.py:42
Functiontest_allocations_view
(sqlite_bus)
tests/integration/test_views.py:25
Functiontest_can_allocate_if_available_equal_to_required
()
tests/unit/test_batches.py:31
Functiontest_can_allocate_if_available_greater_than_required
()
tests/unit/test_batches.py:21
Functiontest_cannot_allocate_if_available_smaller_than_required
()
tests/unit/test_batches.py:26
Functiontest_cannot_allocate_if_skus_do_not_match
()
tests/unit/test_batches.py:36
Functiontest_change_batch_quantity_leading_to_reallocation
()
tests/e2e/test_external_events.py:11
Methodtest_changes_available_quantity
(self)
tests/unit/test_handlers.py:114
Methodtest_commits
(self)
tests/unit/test_handlers.py:92
Functiontest_concurrent_updates_to_version_are_not_allowed
(postgres_session_factory)
tests/integration/test_uow.py:94
Functiontest_deallocation
(sqlite_bus)
tests/integration/test_views.py:41
Methodtest_errors_for_invalid_sku
(self)
tests/unit/test_handlers.py:85
Methodtest_for_existing_product
(self)
tests/unit/test_handlers.py:68
Methodtest_for_new_product
(self)
tests/unit/test_handlers.py:62
Functiontest_get_by_batchref
(sqlite_session_factory)
tests/integration/test_repository.py:8
Functiontest_happy_path_returns_202_and_batch_is_allocated
()
tests/e2e/test_api.py:8
Functiontest_increments_version_number
()
tests/unit/test_product.py:67
Functiontest_out_of_stock_email
(bus)
tests/integration/test_email.py:30
Functiontest_outputs_allocated_event
()
tests/unit/test_product.py:46
Functiontest_prefers_earlier_batches
()
tests/unit/test_product.py:23
Functiontest_prefers_warehouse_batches_to_shipments
()
tests/unit/test_product.py:11
Methodtest_reallocates_if_necessary
(self)
tests/unit/test_handlers.py:123
Functiontest_records_out_of_stock_event_if_cannot_allocate
()
tests/unit/test_product.py:57
Functiontest_returns_allocated_batch_ref
()
tests/unit/test_product.py:37
Functiontest_rolls_back_on_error
(sqlite_session_factory)
tests/integration/test_uow.py:66
Functiontest_rolls_back_uncommitted_work_by_default
(sqlite_session_factory)
tests/integration/test_uow.py:56
Methodtest_sends_email_on_out_of_stock_error
(self)
tests/unit/test_handlers.py:98
Functiontest_unhappy_path_returns_400_and_error_message
()
tests/e2e/test_api.py:30
Functiontest_uow_can_retrieve_a_batch_and_allocate_to_it
(sqlite_session_factory)
tests/integration/test_uow.py:40
← previous101–133 of 133, ranked by callers