{"id":28111,"library":"pytest-tinybird","title":"pytest-tinybird","description":"A pytest plugin that reports test results to Tinybird. Version 0.5.0 adds optional report parameters for multi-repository/multi-workflow. Release cadence is irregular.","status":"active","version":"0.5.0","language":"python","source_language":"en","source_url":"https://github.com/jlmadurga/pytest-tinybird","tags":["pytest","plugin","tinybird","test-reporting"],"install":[{"cmd":"pip install pytest-tinybird","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Required to run tests and collect results.","package":"pytest","optional":false}],"imports":[{"note":"Plugin is automatically loaded by pytest; explicit import not required.","symbol":"pytest_tinybird","correct":"import pytest_tinybird"}],"quickstart":{"code":"# Install: pip install pytest-tinybird\n# Set environment variables\nimport os\nos.environ['TINYBIRD_TOKEN'] = 'your_token'  # Required: Tinybird Events API token\nos.environ['TINYBIRD_DATASOURCE'] = 'pytest_results'  # Required: Datasource name\nos.environ['TINYBIRD_API_URL'] = 'https://api.tinybird.co'  # Optional, default shown\n\n# Run pytest with the plugin (enabled by default)\n# Example: pytest --tb=short tests/","lang":"python","description":"Basic setup: set TINYBIRD_TOKEN and TINYBIRD_DATASOURCE, then run pytest. Plugin automatically sends test results to Tinybird."},"warnings":[{"fix":"Set TINYBIRD_TOKEN in your shell or CI environment.","message":"The plugin uses TINYBIRD_TOKEN environment variable, not a config file. Ensure you set it before running pytest.","severity":"gotcha","affected_versions":"all"},{"fix":"Set TINYBIRD_WAIT=true to wait for Tinybird acknowledgment and reduce duplicates.","message":"In v0.4.0, a retry mechanism was added; if data is not acknowledged, it may be duplicated.","severity":"gotcha","affected_versions":">=0.4.0"},{"fix":"Explicitly set TINYBIRD_WAIT environment variable as needed.","message":"The default wait strategy is 'false' (no wait). In future versions, default may change.","severity":"deprecated","affected_versions":">=0.3.0"},{"fix":"Set TINYBIRD_TIMEOUT to a higher value (e.g., 10) if you experience failures.","message":"Timeout defaults to 2 seconds. Large test suites may cause timeouts; adjust with TINYBIRD_TIMEOUT.","severity":"gotcha","affected_versions":">=0.3.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Remove --tinybird from pytest command. Configure via env vars: TINYBIRD_TOKEN, TINYBIRD_DATASOURCE.","cause":"The plugin does not add custom command-line arguments; it uses environment variables only.","error":"pytest: error: unrecognized arguments: --tinybird"},{"fix":"Install with pip: pip install pytest-tinybird. The plugin is auto-loaded; no explicit import needed.","cause":"The package is not installed or import is attempted explicitly.","error":"Modulenotfounderror: No module named 'pytest_tinybird'"},{"fix":"Set TINYBIRD_TOKEN environment variable before running pytest.","cause":"Missing required environment variable.","error":"OSError: [Errno 0] Error: Could not find TINYBIRD_TOKEN"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}