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 and Google Cloud is supported.
Usage
You can use the mock_google context manager and then use the Googe 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
mebula-0.1.2.tar.gz
(4.7 kB
view details)
Built Distribution
File details
Details for the file mebula-0.1.2.tar.gz
.
File metadata
- Download URL: mebula-0.1.2.tar.gz
- Upload date:
- Size: 4.7 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 | e99f9a161bb64301aeee489fb1d460723eeca5ee1e48e4044c80fe27414ec7b7 |
|
MD5 | 7d75a93b1b4f1d91989162b515855be7 |
|
BLAKE2b-256 | b2ddb9184a5ab858514f387d1bc3ab2a8a730edb1aa83293b5f9ab6145f1d396 |
File details
Details for the file mebula-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: mebula-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.9 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 | 71f09e3120ab89cf6d5201e36d014a6e316c25ebcaccbec66871a185c86bfe4d |
|
MD5 | 3681822963fa20872972cddce8ecd6d4 |
|
BLAKE2b-256 | e6e393ae6044089f31c79736b3dcdc767bcdcd1325b35db931c799dab5fd46db |