tox plugin that makes tox use `pyenv which` to find python executables
Overall
score
98%
Create a Python project configuration that uses a testing framework with support for multiple Python versions managed by pyenv.
Your task is to set up a testing environment configuration that:
Multi-version Testing: Configure testing across at least three different Python versions (e.g., Python 3.7, 3.8, and 3.9)
Environment Configuration: Create a configuration file that defines:
py37 that uses Python 3.7py38 that uses Python 3.8py39 that uses Python 3.9Test Implementation: Write a simple test file that:
Dependency Management: Ensure your configuration includes pytest as a dependency for the test environments
@generates
Your implementation should create:
tox.ini - The configuration file for the testing frameworktest_sample.py - A simple test file with at least one test# tox.ini configuration structure
[tox]
envlist = # list of environments
[testenv]
deps = # dependencies
commands = # test commands to runPython testing framework for writing and running tests.
Integrates pyenv-managed Python versions with tox testing environments.
Install with Tessl CLI
npx tessl i tessl/pypi-tox-pyenvdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10