No project description provided
Project description
Mebula is a framework which you can use in your testing code to mock your calls to cloud providers’ APIs. At the moment, Oracle’s OCI, Google Cloud and Microsoft Azure are supported.
Installation
For Microsoft Azure, install the mebula[azure] package.
For Google Cloud, install the mebula[google] package.
For Oracle’s OCI, install the mebula[oracle] package.
Usage
You can use the mock_google context manager and then use the Google API functions as normal:
import googleapiclient.discovery
import pytest
from mebula import mock_google
@pytest.fixture(scope="function")
def client():
with mock_google():
yield googleapiclient.discovery.build("compute", "v1")
def my_test(client):
assert client.instances().list(project="foo", zone="bar").execute() == {}
Coverage
Coverage is very minimal at the moment. Only launching and listing instances is supported.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mebula-0.2.0.tar.gz
.
File metadata
- Download URL: mebula-0.2.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.2 CPython/3.8.1 Linux/5.0.0-1028-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fd7031807969937ac11edd9a1f33b94754a43c4f2963c02e4fff4c9155c3cde |
|
MD5 | 0c6b8d4418842cd1fd1ee868da8b7734 |
|
BLAKE2b-256 | 64fbdf5f74d614f3797fdf5f1c84e039acdf9e833fb6f06b4d58a2c841054b3b |
File details
Details for the file mebula-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: mebula-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.2 CPython/3.8.1 Linux/5.0.0-1028-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28924bdd7496e518f81e0e56a4a89cfa6eb85f3293212682858b980708b2b754 |
|
MD5 | fae3dbe79657d04f1f41fc3bb310965b |
|
BLAKE2b-256 | 30e4737842295a6a5a236aa98b89f0dcafc36f6a1311bac3c400306e26b4cfd8 |