Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

Adds env variable for mongo db tests

elijahbenizzy0a8133ab810d
diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml
index 2ec73221..330d8e05 100644
--- a/.github/workflows/python-package.yml
+++ b/.github/workflows/python-package.yml
@@ -83,4 +83,4 @@ jobs:
python -m pip install -e ".[tests,tracking-client]"
- name: Run tests
run: |
- python -m pytest tests/integrations/persisters/
+ BURR_CI_INTEGRATION_TESTS=true python -m pytest tests/integrations/persisters/
diff --git a/tests/integrations/persisters/test_b_mongodb.py b/tests/integrations/persisters/test_b_mongodb.py
index 9cccf9c5..cf57211e 100644
--- a/tests/integrations/persisters/test_b_mongodb.py
+++ b/tests/integrations/persisters/test_b_mongodb.py
@@ -1,8 +1,13 @@
+import os
+
import pytest
from burr.core import state
from burr.integrations.persisters.b_mongodb import MongoDBPersister
+if not os.environ.get("BURR_CI_INTEGRATION_TESTS") == "true":
+ pytest.skip("Skipping integration tests", allow_module_level=True)
+
@pytest.fixture
def mongodb_persister():