Open ClausHolbechArista opened 3 days ago
Review docs on Read the Docs
To test this pull request:
# Create virtual environment for this testing below the current directory
python -m venv test-avd-pr-4744
# Activate the virtual environment
source test-avd-pr-4744/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/ClausHolbechArista/avd.git@test/cv_workspace/pytest-mock-cv-api#subdirectory=python-avd" --force
# Point Ansible collections path to the Python virtual environment
export ANSIBLE_COLLECTIONS_PATH=$VIRTUAL_ENV/ansible_collections
# Install Ansible collection
ansible-galaxy collection install git+https://github.com/ClausHolbechArista/avd.git#/ansible_collections/arista/avd/,test/cv_workspace/pytest-mock-cv-api --force
# Optional: Install AVD examples
cd test-avd-pr-4744
ansible-playbook arista.avd.install_examples
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Change Summary
Add support for offline testing of CVClient
Proposed changes
How to test
Added a pytest fixture which automatically serves the relevant type of
CVClient
:Checklist
User Checklist
Repository Checklist