apache / apache/libcloud

feature request, improving tests with pytest and pytest-vcr

Open
#1,518 1 comment 0 reactions 0 assignees View on GitHub
stale
Dominant language
Python
Stars
2.1k
Forks
931
Avg merge
1d 2h
Merged PRs (30d)
4

Description

## Feature Permission Request

Hi, there. Please keep in mind:
- my English is very poor
- I have a very limited experience with any open source projects, especially this one

Recently I'v made a small changes to some cloud providers:
- https://github.com/apache/libcloud/pull/1508 (Digitalocean)
- https://github.com/apache/libcloud/pull/1506 (Vultr)

I am asking for permission for completely rewrite some tests with:
- https://docs.pytest.org/en/stable/
- https://pytest-vcr.readthedocs.io/en/latest/

I chose Vultr for a start point for me.
I believe that `pytest` is a very nice and easiest way to write any tests for any project. Many people do not like write tests, but with `pytest` and `pytest-vcr` their work will be more funny and much better.
I can not promise that my work will be done completely, but I will try to make a start point for that.

Please suggest me the write way. E.g.:
- I should not make any changes to current tests
- I should make new tests from the scratch

P.S.
I hope Google translate is working as expected :smiley:

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing Vultr provider tests, then read the linked pytest and pytest-vcr documentation. The issue does not identify test files or a defined scope, so first establish whether the Vultr tests should be rewritten or supplemented. Done requires an agreed approach and a passing test suite for the selected coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cloud, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.