{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/2"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance"}],"enrichment":{"capability":"A pytest plugin that injects a configurable base URL into your test suite via command line, config file, environment variable, or fixture override.","skillfed_tags":["pytest-plugin","integration-testing","url-management"],"use_cases":["Integration testing against multiple environments by passing different base URLs without changing test code","End-to-end testing of web applications where the server URL is determined at runtime by a fixture","CI/CD pipelines that run the same test suite against dev, staging, and production with environment-specific URLs","Skipping environment-specific tests (e.g., skip search tests on dev) based on the base URL provided","Verifying that a target URL is reachable before running a large test suite to fail fast on connectivity issues"],"what_it_does":"pytest-base-url is a lightweight pytest plugin that centralizes base URL management for test suites that make HTTP requests. Instead of hardcoding or repeating URLs across tests, you specify a single base URL once\u2014via command line (--base-url), configuration file, environment variable (PYTEST_BASE_URL), or by overriding the base_url fixture\u2014and inject it into any test that needs it. The plugin is commonly used in integration and end-to-end testing workflows where tests need to target different environments (dev, staging, production) without code changes.\n\nThe package depends only on pytest and requests, making installation frictionless. It supports Python 3.8 and later on CPython and PyPy, and is actively maintained. An optional --verify-base-url flag lets you fail fast if the target URL is unreachable before running the full suite, and you can conditionally skip tests based on the base URL value.","worth_installing":"Yes. This is a mature, actively maintained plugin (Production/Stable status, last release January 2024) with minimal dependencies and low install friction. It solves a common testing problem elegantly and has no known vulnerabilities. The copyleft license (MPL 2.0) is permissive for most use cases. Install it if your test suite makes HTTP requests to configurable endpoints."},"id":"pytest-base-url","links":{"html":"https://skillfed.io/packages/pytest-base-url","md":"https://skillfed.io/packages/pytest-base-url.md","pypi":"https://pypi.org/project/pytest-base-url/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-01-31","license_spdx":null,"license_treatment":"copyleft","name":"pytest-base-url","python_support":"supports_current","summary":"pytest plugin for URL based testing"},"popularity":{"monthly_downloads":10189946,"position":1473,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.1.0"}
