quadkit-testing 0.0.1__tar.gz → 0.0.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. quadkit_testing-0.0.4/.gitignore +183 -0
  2. quadkit_testing-0.0.4/LICENSE +201 -0
  3. quadkit_testing-0.0.4/NOTICE +35 -0
  4. quadkit_testing-0.0.4/PKG-INFO +270 -0
  5. quadkit_testing-0.0.4/README.md +198 -0
  6. quadkit_testing-0.0.4/docs/ARCHITECTURE.md +571 -0
  7. quadkit_testing-0.0.4/docs/COMPLIANCE.md +123 -0
  8. quadkit_testing-0.0.4/docs/CONFIGURATION.md +52 -0
  9. quadkit_testing-0.0.4/docs/GUIDE.md +191 -0
  10. quadkit_testing-0.0.4/docs/HOWTOS.md +220 -0
  11. quadkit_testing-0.0.4/docs/QUICKSTART.md +66 -0
  12. quadkit_testing-0.0.4/docs/TROUBLESHOOTING.md +174 -0
  13. quadkit_testing-0.0.4/pyproject.toml +220 -0
  14. quadkit_testing-0.0.4/src/quadkit/py.typed +0 -0
  15. quadkit_testing-0.0.4/src/quadkit/testing/README.md +233 -0
  16. quadkit_testing-0.0.4/src/quadkit/testing/__init__.py +345 -0
  17. quadkit_testing-0.0.4/src/quadkit/testing/_lazy_exports.py +72 -0
  18. quadkit_testing-0.0.4/src/quadkit/testing/clients/ai/__init__.py +9 -0
  19. quadkit_testing-0.0.4/src/quadkit/testing/clients/ai/bed.py +103 -0
  20. quadkit_testing-0.0.4/src/quadkit/testing/clients/ai/client.py +164 -0
  21. quadkit_testing-0.0.4/src/quadkit/testing/clients/ai/data.py +76 -0
  22. quadkit_testing-0.0.4/src/quadkit/testing/clients/auth/__init__.py +64 -0
  23. quadkit_testing-0.0.4/src/quadkit/testing/clients/auth/bed.py +115 -0
  24. quadkit_testing-0.0.4/src/quadkit/testing/clients/auth/client.py +22 -0
  25. quadkit_testing-0.0.4/src/quadkit/testing/clients/auth/fixtures/__init__.py +134 -0
  26. quadkit_testing-0.0.4/src/quadkit/testing/clients/auth/fixtures/_async.py +30 -0
  27. quadkit_testing-0.0.4/src/quadkit/testing/clients/auth/fixtures/beds.py +36 -0
  28. quadkit_testing-0.0.4/src/quadkit/testing/clients/auth/fixtures/mocks.py +82 -0
  29. quadkit_testing-0.0.4/src/quadkit/testing/clients/auth/fixtures/tokens.py +196 -0
  30. quadkit_testing-0.0.4/src/quadkit/testing/clients/auth/fixtures/users.py +239 -0
  31. quadkit_testing-0.0.4/src/quadkit/testing/clients/auth/py.typed +0 -0
  32. quadkit_testing-0.0.4/src/quadkit/testing/clients/auth/test_client.py +157 -0
  33. quadkit_testing-0.0.4/src/quadkit/testing/clients/auth/types.py +141 -0
  34. quadkit_testing-0.0.4/src/quadkit/testing/clients/cache/__init__.py +101 -0
  35. quadkit_testing-0.0.4/src/quadkit/testing/clients/cache/bed.py +114 -0
  36. quadkit_testing-0.0.4/src/quadkit/testing/clients/cache/client.py +16 -0
  37. quadkit_testing-0.0.4/src/quadkit/testing/clients/cache/client_core.py +275 -0
  38. quadkit_testing-0.0.4/src/quadkit/testing/clients/cache/data.py +60 -0
  39. quadkit_testing-0.0.4/src/quadkit/testing/clients/cache/fixtures/__init__.py +143 -0
  40. quadkit_testing-0.0.4/src/quadkit/testing/clients/cache/fixtures/_async.py +30 -0
  41. quadkit_testing-0.0.4/src/quadkit/testing/clients/cache/fixtures/beds.py +57 -0
  42. quadkit_testing-0.0.4/src/quadkit/testing/clients/cache/fixtures/data.py +173 -0
  43. quadkit_testing-0.0.4/src/quadkit/testing/clients/cache/fixtures/lifecycle.py +219 -0
  44. quadkit_testing-0.0.4/src/quadkit/testing/clients/cache/fixtures/scenarios.py +65 -0
  45. quadkit_testing-0.0.4/src/quadkit/testing/clients/cache/py.typed +0 -0
  46. quadkit_testing-0.0.4/src/quadkit/testing/clients/db/__init__.py +8 -0
  47. quadkit_testing-0.0.4/src/quadkit/testing/clients/db/bed.py +45 -0
  48. quadkit_testing-0.0.4/src/quadkit/testing/clients/db/client.py +109 -0
  49. quadkit_testing-0.0.4/src/quadkit/testing/clients/events/__init__.py +111 -0
  50. quadkit_testing-0.0.4/src/quadkit/testing/clients/events/client.py +26 -0
  51. quadkit_testing-0.0.4/src/quadkit/testing/clients/events/components/__init__.py +17 -0
  52. quadkit_testing-0.0.4/src/quadkit/testing/clients/events/components/command_client.py +159 -0
  53. quadkit_testing-0.0.4/src/quadkit/testing/clients/events/components/event_client.py +225 -0
  54. quadkit_testing-0.0.4/src/quadkit/testing/clients/events/components/py.typed +0 -0
  55. quadkit_testing-0.0.4/src/quadkit/testing/clients/events/components/query_client.py +159 -0
  56. quadkit_testing-0.0.4/src/quadkit/testing/clients/events/components/test_bed.py +116 -0
  57. quadkit_testing-0.0.4/src/quadkit/testing/clients/events/components/test_data.py +195 -0
  58. quadkit_testing-0.0.4/src/quadkit/testing/clients/events/fixtures/__init__.py +262 -0
  59. quadkit_testing-0.0.4/src/quadkit/testing/clients/events/fixtures/_async.py +34 -0
  60. quadkit_testing-0.0.4/src/quadkit/testing/clients/events/fixtures/beds.py +121 -0
  61. quadkit_testing-0.0.4/src/quadkit/testing/clients/events/fixtures/data.py +219 -0
  62. quadkit_testing-0.0.4/src/quadkit/testing/clients/events/fixtures/handlers.py +169 -0
  63. quadkit_testing-0.0.4/src/quadkit/testing/clients/events/fixtures/models.py +139 -0
  64. quadkit_testing-0.0.4/src/quadkit/testing/clients/events/fixtures/scenarios.py +52 -0
  65. quadkit_testing-0.0.4/src/quadkit/testing/clients/events/py.typed +0 -0
  66. quadkit_testing-0.0.4/src/quadkit/testing/clients/search/__init__.py +40 -0
  67. quadkit_testing-0.0.4/src/quadkit/testing/clients/search/client.py +431 -0
  68. quadkit_testing-0.0.4/src/quadkit/testing/clients/search/fixtures.py +63 -0
  69. quadkit_testing-0.0.4/src/quadkit/testing/clients/search/py.typed +0 -0
  70. quadkit_testing-0.0.4/src/quadkit/testing/clients/storage/__init__.py +11 -0
  71. quadkit_testing-0.0.4/src/quadkit/testing/clients/storage/fixtures.py +81 -0
  72. quadkit_testing-0.0.4/src/quadkit/testing/clients/storage/mocks.py +41 -0
  73. quadkit_testing-0.0.4/src/quadkit/testing/clients/storage/py.typed +0 -0
  74. quadkit_testing-0.0.4/src/quadkit/testing/clients/tasks/__init__.py +23 -0
  75. quadkit_testing-0.0.4/src/quadkit/testing/clients/tasks/bed.py +122 -0
  76. quadkit_testing-0.0.4/src/quadkit/testing/clients/tasks/client.py +149 -0
  77. quadkit_testing-0.0.4/src/quadkit/testing/clients/tasks/data.py +88 -0
  78. quadkit_testing-0.0.4/src/quadkit/testing/clients/tasks/mocks.py +306 -0
  79. quadkit_testing-0.0.4/src/quadkit/testing/clients/tasks/py.typed +0 -0
  80. quadkit_testing-0.0.4/src/quadkit/testing/clients/ui/__init__.py +7 -0
  81. quadkit_testing-0.0.4/src/quadkit/testing/clients/ui/core.py +106 -0
  82. quadkit_testing-0.0.4/src/quadkit/testing/clients/web/__init__.py +45 -0
  83. quadkit_testing-0.0.4/src/quadkit/testing/clients/web/bed.py +139 -0
  84. quadkit_testing-0.0.4/src/quadkit/testing/clients/web/client.py +306 -0
  85. quadkit_testing-0.0.4/src/quadkit/testing/clients/web/py.typed +0 -0
  86. quadkit_testing-0.0.4/src/quadkit/testing/clock.py +70 -0
  87. quadkit_testing-0.0.4/src/quadkit/testing/compliance/__init__.py +95 -0
  88. quadkit_testing-0.0.4/src/quadkit/testing/compliance/audit.py +191 -0
  89. quadkit_testing-0.0.4/src/quadkit/testing/compliance/blob_store.py +121 -0
  90. quadkit_testing-0.0.4/src/quadkit/testing/compliance/cache.py +131 -0
  91. quadkit_testing-0.0.4/src/quadkit/testing/compliance/database.py +126 -0
  92. quadkit_testing-0.0.4/src/quadkit/testing/compliance/distributed_lock.py +113 -0
  93. quadkit_testing-0.0.4/src/quadkit/testing/compliance/event_bus.py +133 -0
  94. quadkit_testing-0.0.4/src/quadkit/testing/compliance/flags.py +141 -0
  95. quadkit_testing-0.0.4/src/quadkit/testing/compliance/middleware.py +140 -0
  96. quadkit_testing-0.0.4/src/quadkit/testing/compliance/notification.py +116 -0
  97. quadkit_testing-0.0.4/src/quadkit/testing/compliance/queue_backend.py +89 -0
  98. quadkit_testing-0.0.4/src/quadkit/testing/compliance/repository.py +69 -0
  99. quadkit_testing-0.0.4/src/quadkit/testing/compliance/search.py +139 -0
  100. quadkit_testing-0.0.4/src/quadkit/testing/compliance/secrets.py +181 -0
  101. quadkit_testing-0.0.4/src/quadkit/testing/compliance/task_queue.py +211 -0
  102. quadkit_testing-0.0.4/src/quadkit/testing/compliance/vector_store.py +197 -0
  103. quadkit_testing-0.0.4/src/quadkit/testing/compliance/webhook.py +346 -0
  104. quadkit_testing-0.0.4/src/quadkit/testing/config.py +65 -0
  105. quadkit_testing-0.0.4/src/quadkit/testing/constants.py +61 -0
  106. quadkit_testing-0.0.4/src/quadkit/testing/decorators.py +3 -0
  107. quadkit_testing-0.0.4/src/quadkit/testing/di/__init__.py +1 -0
  108. quadkit_testing-0.0.4/src/quadkit/testing/events.py +3 -0
  109. quadkit_testing-0.0.4/src/quadkit/testing/exceptions.py +36 -0
  110. quadkit_testing-0.0.4/src/quadkit/testing/fakes/__init__.py +68 -0
  111. quadkit_testing-0.0.4/src/quadkit/testing/fakes/audit.py +88 -0
  112. quadkit_testing-0.0.4/src/quadkit/testing/fakes/buses.py +127 -0
  113. quadkit_testing-0.0.4/src/quadkit/testing/fakes/cache.py +102 -0
  114. quadkit_testing-0.0.4/src/quadkit/testing/fakes/clock.py +84 -0
  115. quadkit_testing-0.0.4/src/quadkit/testing/fakes/config.py +95 -0
  116. quadkit_testing-0.0.4/src/quadkit/testing/fakes/events.py +157 -0
  117. quadkit_testing-0.0.4/src/quadkit/testing/fakes/governance.py +224 -0
  118. quadkit_testing-0.0.4/src/quadkit/testing/fakes/lifecycle.py +87 -0
  119. quadkit_testing-0.0.4/src/quadkit/testing/fakes/logging.py +121 -0
  120. quadkit_testing-0.0.4/src/quadkit/testing/fakes/monitoring.py +78 -0
  121. quadkit_testing-0.0.4/src/quadkit/testing/fakes/redis.py +131 -0
  122. quadkit_testing-0.0.4/src/quadkit/testing/fakes/secrets.py +14 -0
  123. quadkit_testing-0.0.4/src/quadkit/testing/fakes/tracing.py +160 -0
  124. quadkit_testing-0.0.4/src/quadkit/testing/fixtures/__init__.py +170 -0
  125. quadkit_testing-0.0.4/src/quadkit/testing/fixtures/ai.py +190 -0
  126. quadkit_testing-0.0.4/src/quadkit/testing/fixtures/bed.py +500 -0
  127. quadkit_testing-0.0.4/src/quadkit/testing/fixtures/container.py +172 -0
  128. quadkit_testing-0.0.4/src/quadkit/testing/fixtures/containers.py +364 -0
  129. quadkit_testing-0.0.4/src/quadkit/testing/fixtures/core.py +190 -0
  130. quadkit_testing-0.0.4/src/quadkit/testing/fixtures/db.py +279 -0
  131. quadkit_testing-0.0.4/src/quadkit/testing/fixtures/py.typed +0 -0
  132. quadkit_testing-0.0.4/src/quadkit/testing/fixtures/tasks.py +57 -0
  133. quadkit_testing-0.0.4/src/quadkit/testing/fixtures/web.py +152 -0
  134. quadkit_testing-0.0.4/src/quadkit/testing/generators.py +57 -0
  135. quadkit_testing-0.0.4/src/quadkit/testing/generators_contract.py +84 -0
  136. quadkit_testing-0.0.4/src/quadkit/testing/harness/__init__.py +1 -0
  137. quadkit_testing-0.0.4/src/quadkit/testing/harness/container.py +117 -0
  138. quadkit_testing-0.0.4/src/quadkit/testing/harness/decorators.py +193 -0
  139. quadkit_testing-0.0.4/src/quadkit/testing/harness/environment.py +249 -0
  140. quadkit_testing-0.0.4/src/quadkit/testing/harness/overrides.py +54 -0
  141. quadkit_testing-0.0.4/src/quadkit/testing/harness/testbed.py +181 -0
  142. quadkit_testing-0.0.4/src/quadkit/testing/hooks.py +3 -0
  143. quadkit_testing-0.0.4/src/quadkit/testing/integration/__init__.py +71 -0
  144. quadkit_testing-0.0.4/src/quadkit/testing/integration/cleanup.py +125 -0
  145. quadkit_testing-0.0.4/src/quadkit/testing/integration/config.py +115 -0
  146. quadkit_testing-0.0.4/src/quadkit/testing/integration/fixtures.py +408 -0
  147. quadkit_testing-0.0.4/src/quadkit/testing/integration/markers.py +52 -0
  148. quadkit_testing-0.0.4/src/quadkit/testing/integration/probes.py +265 -0
  149. quadkit_testing-0.0.4/src/quadkit/testing/lib/__init__.py +37 -0
  150. quadkit_testing-0.0.4/src/quadkit/testing/lib/admin_helpers.py +249 -0
  151. quadkit_testing-0.0.4/src/quadkit/testing/lib/assertions.py +265 -0
  152. quadkit_testing-0.0.4/src/quadkit/testing/lib/async_helper.py +34 -0
  153. quadkit_testing-0.0.4/src/quadkit/testing/lib/factory.py +57 -0
  154. quadkit_testing-0.0.4/src/quadkit/testing/lib/smoke.py +27 -0
  155. quadkit_testing-0.0.4/src/quadkit/testing/lib/snapshots.py +140 -0
  156. quadkit_testing-0.0.4/src/quadkit/testing/lib/stubs.py +84 -0
  157. quadkit_testing-0.0.4/src/quadkit/testing/memory/__init__.py +117 -0
  158. quadkit_testing-0.0.4/src/quadkit/testing/memory/audit.py +126 -0
  159. quadkit_testing-0.0.4/src/quadkit/testing/memory/blob_store.py +217 -0
  160. quadkit_testing-0.0.4/src/quadkit/testing/memory/cache.py +114 -0
  161. quadkit_testing-0.0.4/src/quadkit/testing/memory/config/__init__.py +7 -0
  162. quadkit_testing-0.0.4/src/quadkit/testing/memory/config/models.py +33 -0
  163. quadkit_testing-0.0.4/src/quadkit/testing/memory/constants.py +41 -0
  164. quadkit_testing-0.0.4/src/quadkit/testing/memory/cqrs.py +410 -0
  165. quadkit_testing-0.0.4/src/quadkit/testing/memory/di/__init__.py +7 -0
  166. quadkit_testing-0.0.4/src/quadkit/testing/memory/di/provider.py +50 -0
  167. quadkit_testing-0.0.4/src/quadkit/testing/memory/event_bus.py +268 -0
  168. quadkit_testing-0.0.4/src/quadkit/testing/memory/exceptions.py +116 -0
  169. quadkit_testing-0.0.4/src/quadkit/testing/memory/lock.py +433 -0
  170. quadkit_testing-0.0.4/src/quadkit/testing/memory/notification.py +83 -0
  171. quadkit_testing-0.0.4/src/quadkit/testing/memory/outbox.py +362 -0
  172. quadkit_testing-0.0.4/src/quadkit/testing/memory/queue.py +106 -0
  173. quadkit_testing-0.0.4/src/quadkit/testing/memory/repository.py +204 -0
  174. quadkit_testing-0.0.4/src/quadkit/testing/memory/search.py +179 -0
  175. quadkit_testing-0.0.4/src/quadkit/testing/memory/uow.py +47 -0
  176. quadkit_testing-0.0.4/src/quadkit/testing/mocks/__init__.py +7 -0
  177. quadkit_testing-0.0.4/src/quadkit/testing/mocks/base.py +203 -0
  178. quadkit_testing-0.0.4/src/quadkit/testing/mocks/test_provider.py +53 -0
  179. quadkit_testing-0.0.4/src/quadkit/testing/module.py +41 -0
  180. quadkit_testing-0.0.4/src/quadkit/testing/plugins/__init__.py +5 -0
  181. quadkit_testing-0.0.4/src/quadkit/testing/plugins/pytest/__init__.py +31 -0
  182. quadkit_testing-0.0.4/src/quadkit/testing/plugins/pytest/plugin.py +141 -0
  183. quadkit_testing-0.0.4/src/quadkit/testing/protocols.py +3 -0
  184. quadkit_testing-0.0.4/src/quadkit/testing/py.typed +0 -0
  185. quadkit_testing-0.0.4/src/quadkit/testing/testkit/__init__.py +74 -0
  186. quadkit_testing-0.0.4/src/quadkit/testing/testkit/assertions.py +106 -0
  187. quadkit_testing-0.0.4/src/quadkit/testing/testkit/environment.py +148 -0
  188. quadkit_testing-0.0.4/src/quadkit/testing/testkit/fakes.py +34 -0
  189. quadkit_testing-0.0.4/src/quadkit/testing/testkit/fixtures.py +62 -0
  190. quadkit_testing-0.0.4/src/quadkit/testing/types.py +29 -0
  191. quadkit_testing-0.0.4/src/quadkit/testing/websocket/__init__.py +11 -0
  192. quadkit_testing-0.0.4/src/quadkit/testing/websocket/client.py +105 -0
  193. quadkit_testing-0.0.4/src/quadkit/testing/workflow/__init__.py +10 -0
  194. quadkit_testing-0.0.4/src/quadkit/testing/workflow/harness.py +72 -0
  195. quadkit_testing-0.0.4/tests/__snapshots__/test_snapshot_function.json +8 -0
  196. quadkit_testing-0.0.4/tests/conftest.py +10 -0
  197. quadkit_testing-0.0.4/tests/integration/test_ai_client.py +290 -0
  198. quadkit_testing-0.0.4/tests/integration/test_bed.py +380 -0
  199. quadkit_testing-0.0.4/tests/integration/test_web_client.py +258 -0
  200. quadkit_testing-0.0.4/tests/test_package_structure_p1.py +13 -0
  201. quadkit_testing-0.0.4/tests/unit/__snapshots__/test_snapshot_function.json +8 -0
  202. quadkit_testing-0.0.4/tests/unit/_integration_helpers.py +88 -0
  203. quadkit_testing-0.0.4/tests/unit/conftest.py +12 -0
  204. quadkit_testing-0.0.4/tests/unit/test_ai_client_budget.py +113 -0
  205. quadkit_testing-0.0.4/tests/unit/test_ai_clients.py +210 -0
  206. quadkit_testing-0.0.4/tests/unit/test_app_testbed.py +122 -0
  207. quadkit_testing-0.0.4/tests/unit/test_app_testbed_from_factory_overrides.py +289 -0
  208. quadkit_testing-0.0.4/tests/unit/test_assertion_helpers.py +242 -0
  209. quadkit_testing-0.0.4/tests/unit/test_async_helper.py +113 -0
  210. quadkit_testing-0.0.4/tests/unit/test_cache_client_fixtures.py +234 -0
  211. quadkit_testing-0.0.4/tests/unit/test_cache_clients.py +313 -0
  212. quadkit_testing-0.0.4/tests/unit/test_command_query_test_clients.py +215 -0
  213. quadkit_testing-0.0.4/tests/unit/test_compliance_suites.py +354 -0
  214. quadkit_testing-0.0.4/tests/unit/test_container.py +182 -0
  215. quadkit_testing-0.0.4/tests/unit/test_container_bind.py +165 -0
  216. quadkit_testing-0.0.4/tests/unit/test_container_factory_auto_registration.py +333 -0
  217. quadkit_testing-0.0.4/tests/unit/test_container_try_resolve.py +131 -0
  218. quadkit_testing-0.0.4/tests/unit/test_db_clients.py +155 -0
  219. quadkit_testing-0.0.4/tests/unit/test_db_transaction_fixture.py +211 -0
  220. quadkit_testing-0.0.4/tests/unit/test_environment_lifecycle.py +339 -0
  221. quadkit_testing-0.0.4/tests/unit/test_event_test_client.py +210 -0
  222. quadkit_testing-0.0.4/tests/unit/test_exceptions.py +40 -0
  223. quadkit_testing-0.0.4/tests/unit/test_factory.py +140 -0
  224. quadkit_testing-0.0.4/tests/unit/test_fake_audit.py +44 -0
  225. quadkit_testing-0.0.4/tests/unit/test_fake_event_bus_ordering.py +86 -0
  226. quadkit_testing-0.0.4/tests/unit/test_fake_tracer.py +15 -0
  227. quadkit_testing-0.0.4/tests/unit/test_fakes.py +310 -0
  228. quadkit_testing-0.0.4/tests/unit/test_fakes_cluster.py +369 -0
  229. quadkit_testing-0.0.4/tests/unit/test_fakes_lifecycle.py +135 -0
  230. quadkit_testing-0.0.4/tests/unit/test_fakes_observability.py +136 -0
  231. quadkit_testing-0.0.4/tests/unit/test_fixture_modules.py +418 -0
  232. quadkit_testing-0.0.4/tests/unit/test_generators_util.py +79 -0
  233. quadkit_testing-0.0.4/tests/unit/test_harness_container.py +172 -0
  234. quadkit_testing-0.0.4/tests/unit/test_harness_testkit.py +191 -0
  235. quadkit_testing-0.0.4/tests/unit/test_integration_cleanup.py +155 -0
  236. quadkit_testing-0.0.4/tests/unit/test_integration_cluster.py +100 -0
  237. quadkit_testing-0.0.4/tests/unit/test_integration_environment.py +319 -0
  238. quadkit_testing-0.0.4/tests/unit/test_integration_fixtures.py +311 -0
  239. quadkit_testing-0.0.4/tests/unit/test_integration_probes.py +129 -0
  240. quadkit_testing-0.0.4/tests/unit/test_lib_admin_client.py +191 -0
  241. quadkit_testing-0.0.4/tests/unit/test_lib_async_helpers.py +168 -0
  242. quadkit_testing-0.0.4/tests/unit/test_lib_helpers.py +347 -0
  243. quadkit_testing-0.0.4/tests/unit/test_memory_backends.py +380 -0
  244. quadkit_testing-0.0.4/tests/unit/test_memory_cqrs.py +385 -0
  245. quadkit_testing-0.0.4/tests/unit/test_memory_event_bus.py +261 -0
  246. quadkit_testing-0.0.4/tests/unit/test_memory_lock.py +224 -0
  247. quadkit_testing-0.0.4/tests/unit/test_memory_outbox.py +272 -0
  248. quadkit_testing-0.0.4/tests/unit/test_memory_repository.py +159 -0
  249. quadkit_testing-0.0.4/tests/unit/test_mocks.py +94 -0
  250. quadkit_testing-0.0.4/tests/unit/test_mocks_cluster.py +136 -0
  251. quadkit_testing-0.0.4/tests/unit/test_override_context_manager_revert.py +267 -0
  252. quadkit_testing-0.0.4/tests/unit/test_plugin.py +157 -0
  253. quadkit_testing-0.0.4/tests/unit/test_public_exports.py +259 -0
  254. quadkit_testing-0.0.4/tests/unit/test_pytest_plugin_fixtures.py +161 -0
  255. quadkit_testing-0.0.4/tests/unit/test_round33_hardening.py +79 -0
  256. quadkit_testing-0.0.4/tests/unit/test_service_probe_connectivity.py +276 -0
  257. quadkit_testing-0.0.4/tests/unit/test_small_modules.py +224 -0
  258. quadkit_testing-0.0.4/tests/unit/test_smoke.py +38 -0
  259. quadkit_testing-0.0.4/tests/unit/test_snapshot_asserter_create_compare.py +365 -0
  260. quadkit_testing-0.0.4/tests/unit/test_snapshots.py +109 -0
  261. quadkit_testing-0.0.4/tests/unit/test_stubs.py +77 -0
  262. quadkit_testing-0.0.4/tests/unit/test_subpackage_exports.py +314 -0
  263. quadkit_testing-0.0.4/tests/unit/test_tasks_clients.py +290 -0
  264. quadkit_testing-0.0.4/tests/unit/test_test_environment.py +277 -0
  265. quadkit_testing-0.0.4/tests/unit/test_test_environment_facade.py +159 -0
  266. quadkit_testing-0.0.4/tests/unit/test_test_environment_overrides.py +209 -0
  267. quadkit_testing-0.0.4/tests/unit/test_testing_constants.py +147 -0
  268. quadkit_testing-0.0.4/tests/unit/test_testing_module.py +15 -0
  269. quadkit_testing-0.0.4/tests/unit/test_testing_stack_scenario.py +332 -0
  270. quadkit_testing-0.0.4/tests/unit/test_testing_utils.py +177 -0
  271. quadkit_testing-0.0.4/tests/unit/test_testkit_surface.py +174 -0
  272. quadkit_testing-0.0.4/tests/unit/test_utilities.py +4 -0
  273. quadkit_testing-0.0.4/tests/unit/test_web_clients.py +298 -0
  274. quadkit_testing-0.0.4/tests/unit/test_workflow_websocket_plugins.py +161 -0
  275. quadkit_testing-0.0.1/PKG-INFO +0 -33
  276. quadkit_testing-0.0.1/README.md +0 -5
  277. quadkit_testing-0.0.1/pyproject.toml +0 -54
  278. quadkit_testing-0.0.1/src/quadkit_testing/__init__.py +0 -1
@@ -0,0 +1,183 @@
1
+ *
2
+ !tests/
3
+ !tests/**
4
+ !README.md
5
+ !AGENTS.md
6
+ !DEVELOPMENT.md
7
+ !QUICKGUIDE.md
8
+ !MILESTONE*.md
9
+ !TESTS*.md
10
+ !CHANGELOG.md
11
+ !AUDIT*.md
12
+ !REF*.md
13
+ !AUDIT*.json
14
+ !LICENSE
15
+ !LICENSE-MIT.txt
16
+ !NOTICE
17
+ !TRADEMARK.md
18
+ !conftest.py
19
+ !CONTRIBUTING.md
20
+ !CODE_OF_CONDUCT.md
21
+ !SECURITY.md
22
+ !GOVERNANCE.md
23
+ !pyproject.toml
24
+ !uv.lock
25
+ !docker-compose.yml
26
+ !.env.example
27
+ !.env.full.example
28
+ !.importlinter
29
+ !.superpowers/
30
+ !.superpowers/**
31
+ !.gitattributes
32
+ !.editorconfig
33
+ !Makefile
34
+ !docker-compose.test.yml
35
+ !quadkit.yaml.example
36
+ !.github/
37
+ !.github/workflows/
38
+ !.github/workflows/**
39
+ !.github/dependabot.yml
40
+ !.devcontainer/
41
+ !.devcontainer/**
42
+ !tools/
43
+ !tools/**
44
+ !*example.yaml
45
+
46
+ # Quadkit Packages
47
+ !quadkit*/
48
+ !quadkit*/pyproject.toml
49
+ !quadkit*/CHANGELOG.md
50
+ !quadkit*/README.md
51
+ !quadkit*/alembic.ini
52
+ !quadkit*/mypy.ini
53
+ !quadkit*/*.yaml.example
54
+ !quadkit*/src/
55
+ !quadkit*/src/**
56
+ !quadkit*/docs/
57
+ !quadkit*/docs/**
58
+ !quadkit*/tests/
59
+ !quadkit*/tests/**
60
+
61
+ # Keep quadkit docs
62
+ !/docs/
63
+ !docs/**
64
+
65
+ # Session / cutover plans at the repo root
66
+ !plans/
67
+ !plans/**
68
+
69
+ # Keep example files for README examples
70
+ !/examples/
71
+ !/examples/**
72
+
73
+ # Re-ignore these AFTER negations (last match wins)
74
+ *.tape
75
+ examples/*/runs/
76
+ __pycache__/
77
+ *.pyc
78
+ *.pyo
79
+ *.egg-info/
80
+ dist/
81
+ build/
82
+ .eggs/
83
+ *.egg
84
+ .pytest_cache/
85
+ .mypy_cache/
86
+ .ruff_cache/
87
+ htmlcov/
88
+ .coverage
89
+ coverage.xml
90
+ test.db
91
+ !quadkit*/tests/fixtures/test.db
92
+ *.log
93
+ *.tmp
94
+
95
+ # Company-specific files (keep private, do not commit)
96
+ .company/
97
+ COMPANY_*.md
98
+ company-config/
99
+ internal-docs/
100
+ # Editor swap files
101
+ *.swp
102
+
103
+ !core/
104
+ !packages/
105
+ !core/quadkit*/
106
+ !packages/quadkit*/
107
+ !core/quadkit*/pyproject.toml
108
+ !packages/quadkit*/pyproject.toml
109
+ !core/quadkit*/CHANGELOG.md
110
+ !packages/quadkit*/CHANGELOG.md
111
+ !core/quadkit*/README.md
112
+ !packages/quadkit*/README.md
113
+ !core/quadkit*/alembic.ini
114
+ !packages/quadkit*/alembic.ini
115
+ !core/quadkit*/mypy.ini
116
+ !packages/quadkit*/mypy.ini
117
+ !core/quadkit*/*.yaml.example
118
+ !packages/quadkit*/*.yaml.example
119
+ !core/quadkit*/src/
120
+ !core/quadkit*/src/**
121
+ !packages/quadkit*/src/
122
+ !packages/quadkit*/src/**
123
+ !core/quadkit*/tests/
124
+ !core/quadkit*/tests/**
125
+ !packages/quadkit*/tests/
126
+ !packages/quadkit*/tests/**
127
+ !core/quadkit*/docs/
128
+ !core/quadkit*/docs/**
129
+ !packages/quadkit*/docs/
130
+ !packages/quadkit*/docs/**
131
+
132
+ # dev/
133
+ !dev/
134
+ !dev/**
135
+
136
+ # Admin dev playground (committed dev asset; local SQLite files stay ignored)
137
+ !packages/quadkit-admin/playground/
138
+ !packages/quadkit-admin/playground/serve.py
139
+
140
+ # gatewai apps
141
+ !apps/
142
+ !apps/**
143
+ !apps/gatewai/
144
+ !apps/gatewai/**
145
+ apps/**/node_modules/
146
+ apps/**/dist/
147
+ apps/**/__pycache__/
148
+ apps/**/*.pyc
149
+ apps/**/*.db
150
+ apps/**/*.db-wal
151
+ apps/**/*.db-shm
152
+
153
+ # Re-exclude private content under the tiered paths.
154
+ # MUST come after the !...docs/** negations above — last match wins.
155
+ core/quadkit*/docs/plans/
156
+ packages/quadkit*/docs/plans/
157
+ core/quadkit*/docs/**/
158
+ packages/quadkit*/docs/**/
159
+
160
+ # Re-exclude tooling artifacts under the tiered paths
161
+ __pycache__/
162
+ *.pyc
163
+ *.pyo
164
+ *.egg-info/
165
+ .pytest_cache/
166
+ .mypy_cache/
167
+ .ruff_cache/
168
+ htmlcov/
169
+ .coverage
170
+ coverage.xml
171
+ test.db
172
+ *.tmp
173
+ *.log
174
+ !core/quadkit*/tests/fixtures/test.db
175
+ !packages/quadkit*/tests/fixtures/test.db
176
+
177
+ # Allow the generated example gifs to be tracked (README hero images).
178
+ !core/quadkit*/docs/gifs/
179
+ !core/quadkit*/docs/gifs/**
180
+ !packages/*/quadkit*/docs/gifs/
181
+ !packages/*/quadkit*/docs/gifs/**
182
+ examples/*/screenshot.png
183
+ !banner*
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,35 @@
1
+ Quadkit Framework
2
+ Copyright 2026 Quadkit
3
+
4
+ This product includes software developed by the Quadkit Framework project.
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not
7
+ use this file except in compliance with the License. You may obtain a copy of
8
+ the License in the LICENSE file at the root of this repository, or at:
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15
+ License for the specific language governing permissions and limitations
16
+ under the License.
17
+
18
+ --------------------------------------------------------------------------
19
+ Prior licensing
20
+ --------------------------------------------------------------------------
21
+
22
+ The 0.0.1 release of this project was distributed under the MIT License.
23
+ That license text is retained in LICENSE-MIT.txt and continues to apply to
24
+ that release. It does not apply to this or any later version.
25
+
26
+ --------------------------------------------------------------------------
27
+ Trademarks
28
+ --------------------------------------------------------------------------
29
+
30
+ "Quadkit" and the Quadkit logo are trademarks of the Quadkit project and
31
+ are not licensed under the Apache License, Version 2.0. See TRADEMARK.md for
32
+ the trademark policy.
33
+
34
+ Quadkit is not affiliated with, endorsed by, or sponsored by any third
35
+ party whose marks may resemble the project name.
@@ -0,0 +1,270 @@
1
+ Metadata-Version: 2.5
2
+ Name: quadkit-testing
3
+ Version: 0.0.4
4
+ Summary: Centralized testing infrastructure for Quadkit Framework - Fixtures, factories, and utilities
5
+ Project-URL: Homepage, https://dbtinoy-.github.io/quadkit/
6
+ Project-URL: Repository, https://github.com/dbtinoy-/quadkit
7
+ Project-URL: Documentation, https://dbtinoy-.github.io/quadkit/
8
+ Project-URL: Issues, https://github.com/dbtinoy-/quadkit/issues
9
+ Project-URL: Changelog, https://github.com/dbtinoy-/quadkit/blob/main/CHANGELOG.md
10
+ Author-email: Quadkit Framework Team <team@quadkit.dev>
11
+ Maintainer-email: Quadkit Framework Team <team@quadkit.dev>
12
+ License: Apache-2.0
13
+ License-File: LICENSE
14
+ License-File: NOTICE
15
+ Keywords: async,factories,fixtures,framework,mocking,pytest,testing
16
+ Classifier: Development Status :: 3 - Alpha
17
+ Classifier: Framework :: AsyncIO
18
+ Classifier: Framework :: Pytest
19
+ Classifier: Intended Audience :: Developers
20
+ Classifier: License :: OSI Approved :: Apache Software License
21
+ Classifier: Operating System :: OS Independent
22
+ Classifier: Programming Language :: Python :: 3
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Classifier: Programming Language :: Python :: 3.13
26
+ Classifier: Topic :: Software Development :: Testing
27
+ Classifier: Typing :: Typed
28
+ Requires-Python: >=3.11
29
+ Requires-Dist: pytest-asyncio<2,>=0.21.0
30
+ Requires-Dist: pytest-cov<8,>=4.0.0
31
+ Requires-Dist: pytest-mock<4,>=3.10.0
32
+ Requires-Dist: pytest<10,>=8.0.0
33
+ Requires-Dist: quadkit-contracts>=0.0.2
34
+ Requires-Dist: quadkit>=0.0.2
35
+ Provides-Extra: all
36
+ Requires-Dist: aiosqlite<1,>=0.19.0; extra == 'all'
37
+ Requires-Dist: asyncpg<1,>=0.29.0; extra == 'all'
38
+ Requires-Dist: httpx2<3,>=2.0.0; extra == 'all'
39
+ Requires-Dist: httpx<1,>=0.26.0; extra == 'all'
40
+ Requires-Dist: quadkit-auth>=0.0.2; extra == 'all'
41
+ Requires-Dist: quadkit-cache>=0.0.2; extra == 'all'
42
+ Requires-Dist: quadkit-storage>=0.0.2; extra == 'all'
43
+ Requires-Dist: starlette<2,>=0.28.0; extra == 'all'
44
+ Provides-Extra: auth
45
+ Requires-Dist: quadkit-auth>=0.0.2; extra == 'auth'
46
+ Provides-Extra: cache
47
+ Requires-Dist: quadkit-cache>=0.0.2; extra == 'cache'
48
+ Provides-Extra: db
49
+ Requires-Dist: aiosqlite<1,>=0.19.0; extra == 'db'
50
+ Requires-Dist: asyncpg<1,>=0.29.0; extra == 'db'
51
+ Requires-Dist: quadkit-sql>=0.0.2; extra == 'db'
52
+ Provides-Extra: dev
53
+ Requires-Dist: black<27,>=23.0.0; extra == 'dev'
54
+ Requires-Dist: mypy<3,>=1.0.0; extra == 'dev'
55
+ Requires-Dist: ruff<1,>=0.16.4; extra == 'dev'
56
+ Provides-Extra: integration
57
+ Requires-Dist: aiokafka<1,>=0.12.0; extra == 'integration'
58
+ Requires-Dist: aiosqlite<1,>=0.19.0; extra == 'integration'
59
+ Requires-Dist: asyncpg<1,>=0.29.0; extra == 'integration'
60
+ Requires-Dist: elasticsearch[async]<10,>=8.12.0; extra == 'integration'
61
+ Requires-Dist: motor<4,>=3.3.0; extra == 'integration'
62
+ Requires-Dist: neo4j<7,>=5.18.0; extra == 'integration'
63
+ Requires-Dist: qdrant-client<2,>=1.9.0; extra == 'integration'
64
+ Requires-Dist: redis<9,>=5.0.0; extra == 'integration'
65
+ Provides-Extra: storage
66
+ Requires-Dist: quadkit-storage>=0.0.2; extra == 'storage'
67
+ Provides-Extra: web
68
+ Requires-Dist: httpx2<3,>=2.0.0; extra == 'web'
69
+ Requires-Dist: httpx<1,>=0.26.0; extra == 'web'
70
+ Requires-Dist: starlette<2,>=0.28.0; extra == 'web'
71
+ Description-Content-Type: text/markdown
72
+
73
+ # quadkit-testing
74
+
75
+ ![Quadkit](https://raw.githubusercontent.com/dbtinoy-/quadkit/main/banner.jpg)
76
+
77
+ [![PyPI](https://img.shields.io/pypi/v/quadkit-testing?color=%2322c55e&label=pypi)](https://pypi.org/project/quadkit-testing/)
78
+ [![Python](https://img.shields.io/pypi/pyversions/quadkit-testing?color=%2322c55e)](https://pypi.org/project/quadkit-testing/)
79
+ [![License](https://img.shields.io/pypi/l/quadkit-testing?color=%2322c55e)](https://github.com/dbtinoy-/quadkit/blob/main/LICENSE)
80
+
81
+ Test harnesses, fakes, and fixtures for Quadkit applications: boot the
82
+ real application in-process, substitute bindings instead of mocking
83
+ import sites, and assert on responses with helpers that say what
84
+ failed.
85
+
86
+ For anyone writing tests against Quadkit applications — and for tooling
87
+ that needs drop-in implementations of the framework's protocols.
88
+
89
+ ## The quadkit family
90
+
91
+ | Package | Role |
92
+ | --- | --- |
93
+ | [`quadkit-contracts`](https://pypi.org/project/quadkit-contracts/) | zero-dependency protocols, types, exception hierarchy |
94
+ | [`quadkit`](https://pypi.org/project/quadkit/) | the framework core — DI container, modules, config, logging, `Result` |
95
+ | [`quadkit-web`](https://pypi.org/project/quadkit-web/) | ASGI layer — controllers, routing, middleware, OpenAPI docs |
96
+ | [`quadkit-cli`](https://pypi.org/project/quadkit-cli/) | project scaffolding and code generators |
97
+ | [`quadkit-testing`](https://pypi.org/project/quadkit-testing/) | in-process test beds, fakes, fixtures |
98
+
99
+ ## Installation
100
+
101
+ ```bash
102
+ uv add --dev quadkit-testing
103
+ ```
104
+
105
+ Requires **Python >= 3.11**.
106
+
107
+ ## Minimal working example
108
+
109
+ Test an HTTP route with the real application, in-process:
110
+
111
+ ```python
112
+ import pytest
113
+
114
+ from quadkit.testing import WebTestBed
115
+
116
+ from my_app import create_app
117
+
118
+
119
+ @pytest.mark.asyncio
120
+ async def test_hello() -> None:
121
+ async with WebTestBed(create_app()) as bed:
122
+ response = bed.get("/hello", params={"name": "quadkit"})
123
+ response.assert_status(200)
124
+ assert response.json == {"message": "hello, quadkit"}
125
+ ```
126
+
127
+ Or test services directly, with binding overrides:
128
+
129
+ ```python
130
+ async def test_service() -> None:
131
+ from quadkit.testing import AppTestBed
132
+
133
+ async with AppTestBed.from_factory(
134
+ create_app, overrides={Cache: FakeCache()}
135
+ ) as bed:
136
+ service = await bed.app.container.resolve(UserService)
137
+ ```
138
+
139
+ A pytest plugin registers automatically via entry points — no
140
+ `conftest.py` wiring — and provides auto-registered fixtures including
141
+ `fake_cache`, `fake_event_bus`, `fake_logger`, `fake_clock`,
142
+ `fake_command_bus`, `fake_query_bus`, `fake_unit_of_work`,
143
+ `fake_metrics`, `fake_config`, `fake_state_store`, `test_bed`,
144
+ `test_container`, and `test_data`:
145
+
146
+ ```python
147
+ import pytest
148
+
149
+ from quadkit.contracts.domain.events import DomainEvent
150
+
151
+
152
+ class UserCreated(DomainEvent):
153
+ user_id: str
154
+ email: str
155
+
156
+
157
+ @pytest.mark.asyncio
158
+ async def test_signup_publishes(fake_event_bus) -> None:
159
+ await fake_event_bus.publish(UserCreated(user_id="1", email="a@b.c"))
160
+ fake_event_bus.assert_published(UserCreated, user_id="1")
161
+
162
+
163
+ def test_trial_expiry_is_deterministic(fake_clock) -> None:
164
+ t0 = fake_clock.now()
165
+ fake_clock.advance(30 * 24 * 3600)
166
+ assert (fake_clock.now() - t0).days == 30
167
+ ```
168
+
169
+ ## Optional extras
170
+
171
+ | Extra | Contents |
172
+ | --- | --- |
173
+ | `[web]` | `httpx` + Starlette — the `WebTestBed` client transport |
174
+ | `[db]` | `aiosqlite`, `asyncpg` — drivers for your async DB test suites |
175
+ | `[integration]` | service clients for integration suites (Redis, MongoDB, Kafka, Elasticsearch, Neo4j, Qdrant, PostgreSQL, SQLite) |
176
+ | `[dev]` | `ruff`, `mypy`, `black` |
177
+
178
+ ## Public API entry points
179
+
180
+ ### Test beds
181
+
182
+ ```python
183
+ from quadkit.testing import AppTestBed, WebTestBed
184
+ ```
185
+
186
+ - `AppTestBed.from_factory(factory, overrides=None)` /
187
+ `AppTestBed.from_app(app)` — application-level beds.
188
+ - `WebTestBed(app_or_provider, raise_server_exceptions=True)` with
189
+ `get/post/put/patch/delete`, `override(Contract, impl)` (before
190
+ boot), and `TestResponse` — `status_code`, `headers`, `text`,
191
+ `json` (property), `assert_status`, `assert_json`,
192
+ `assert_json_path`, `assert_header`.
193
+ - `quadkit.testing.fixtures.container.ContainerTestFixture` — DI-level
194
+ fixture with `mock()`, `override()`, `get()`, `get_optional()`.
195
+ - `quadkit.testing.fixtures.bed.TestEnvironment` — programmatic
196
+ environment builder (`use_provider`, `override`, `fake`, `resolve`).
197
+ - `quadkit.testing.lib.factory.TestDataFactory` — deterministic
198
+ `create_user()`, `create_task()`, `create_message()`,
199
+ `create_request()`.
200
+
201
+ ### Fakes (`quadkit.testing.fakes`)
202
+
203
+ All in-process, async-native, implementing the same contracts as the
204
+ real services:
205
+
206
+ | Class | Covers |
207
+ | --- | --- |
208
+ | `FakeCache` / `FakeStateStore` | cache and state storage |
209
+ | `FakeEventBus` | in-process events with `assert_published()`, `published_of_type()`, `assert_events_in_order()` and friends |
210
+ | `FakeCommandBus` / `FakeQueryBus` | command / query dispatch |
211
+ | `FakeUnitOfWork` | unit-of-work context |
212
+ | `FakeClock` (+ `Clock`, `SystemClock`) | deterministic time |
213
+ | `FakeConfig` | config overrides |
214
+ | `FakeLogger` (+ `LogEntry`) | structlog-compatible sink |
215
+ | `FakeMetricsCollector` / `FakeResourceUnitTracker` | metrics / resource tracking |
216
+ | `FakeRedisClient` | Redis-protocol client |
217
+ | `FakeAuditLogger` | audit records |
218
+ | `FakeTracer` / `FakeSpan` | tracing |
219
+
220
+ The published wheel carries the `ai`, `db` and `web` test clients and beds
221
+ plus the fakes and fixtures that need no private package. The `auth`,
222
+ `cache`, `events`, `search`, `storage`, `tasks`, `ui` test clients, the
223
+ AI/DB/task fixture modules, the secrets fake and `IntegrationEnvironment`
224
+ stay in this repository until their packages publish; asking the published
225
+ wheel for one raises `AttributeError` naming the module.
226
+
227
+ ## Configuration
228
+
229
+ None required — the pytest plugin self-registers. Mark suites for
230
+ external services and gate them yourself (e.g.
231
+ `uv run pytest -m "not integration"`).
232
+
233
+ ## Error handling
234
+
235
+ Test beds surface failures, they don't hide them: with
236
+ `raise_server_exceptions=True` (the default) unexpected exceptions
237
+ re-raise into your test with their original traceback; HTTP-expected
238
+ failures assert on the response instead.
239
+
240
+ ## Testing
241
+
242
+ Ironically self-hosted: this package's public tests are among the
243
+ suite the release executes from the exported tree against the built
244
+ wheels.
245
+
246
+ ## Security
247
+
248
+ Fakes are in-process and safe to wire into unit suites. Report
249
+ vulnerabilities privately per [SECURITY.md](https://github.com/dbtinoy-/quadkit/blob/main/SECURITY.md).
250
+
251
+ ## Stability
252
+
253
+ Version `0.0.3` in the `0.x` series, released in lockstep with the
254
+ other four distributions; APIs may change between minor versions until
255
+ 1.0 — pin an exact version (`quadkit-testing==0.0.3`) or a tight range
256
+ (`>=0.0.3,<0.1.0`). Full policy:
257
+ [stability and compatibility](https://dbtinoy-.github.io/quadkit/reference/stability/).
258
+
259
+ ## Links
260
+
261
+ - **Documentation** — <https://dbtinoy-.github.io/quadkit/>
262
+ - **Getting started** — <https://dbtinoy-.github.io/quadkit/getting-started/installation/>
263
+ - **Changelog** — <https://github.com/dbtinoy-/quadkit/blob/main/CHANGELOG.md>
264
+ - **Issues** — <https://github.com/dbtinoy-/quadkit/issues>
265
+ - **Security** — report privately per [SECURITY.md](https://github.com/dbtinoy-/quadkit/blob/main/SECURITY.md)
266
+ - **Contributing** — [CONTRIBUTING.md](https://github.com/dbtinoy-/quadkit/blob/main/CONTRIBUTING.md)
267
+
268
+ Apache-2.0 — see [LICENSE](https://github.com/dbtinoy-/quadkit/blob/main/LICENSE). "Quadkit" and the
269
+ Quadkit logo are trademarks of the project — see
270
+ [TRADEMARK.md](https://github.com/dbtinoy-/quadkit/blob/main/TRADEMARK.md).