# How to do setup to run tests that involve blockstore?

**URL:** <https://discuss.openedx.org/t/how-to-do-setup-to-run-tests-that-involve-blockstore/14654>\
**Category:** Development\
**Tags:** nutmeg\
**Created:** [December 26, 2024, 2:26pm UTC](https://discuss.openedx.org/t/how-to-do-setup-to-run-tests-that-involve-blockstore/14654 "2024-12-26T14:26:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Labeeb](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/labeeb/32/5802_2.png) [@Labeeb](https://discuss.openedx.org/u/Labeeb)\
**Post date:** [December 26, 2024, 2:26pm UTC](https://discuss.openedx.org/t/how-to-do-setup-to-run-tests-that-involve-blockstore/14654/1 "2024-12-26T14:26:08Z")

</div>

What are the steps that I need to follow to run tests that involve blockstore. For example these: [content library tests](https://github.com/openedx/edx-platform/blob/master/openedx/core/djangoapps/content_libraries/tests/test_content_libraries.py). As far as I understand I have to create a separate blockstore server specifically for running tests, is there any way to run it on the main blockstore server? Other will the test blockstore database handle all necessary testing cleanups and teardowns by itself or would I need to set those up manually as well?

---

<div class="post-metadata">

**Author:** ![braden](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/braden/32/46_2.png) [@braden](https://discuss.openedx.org/u/braden)\
**Post date:** [January 6, 2025, 7:46pm UTC](https://discuss.openedx.org/t/how-to-do-setup-to-run-tests-that-involve-blockstore/14654/2 "2025-01-06T19:46:06Z")

</div>

Hi @Labeeb, in April 2022 (“Nutmeg” version of the Open edX platform), [blockstore was added into the platform](https://github.com/openedx-unsupported/blockstore?tab=readme-ov-file#current-status) so that it no longer needed to be run as a separate server. Then since early 2024, in the latest versions of Open edX (Redwood, Sumac, master), Blockstore has been entirely replaced by [Learning Core](https://github.com/openedx/openedx-learning) which is also built into edx-platform.

If you are trying to run the tests because you are developing some sort of new functionality or integrations, then I highly recommend you use the latest “master” version of the platform. Otherwise, you’ll have to re-do all the work when you upgrade to the newer version and its new APIs. If you are using the latest version, the tests should all “just work” and no special setup is required.
