Skip to main content

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


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.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

mebula-0.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file mebula-0.1.1.tar.gz.

File metadata

  • Download URL: mebula-0.1.1.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

Hashes for mebula-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ab99949ec76ce1567434881061af8ce26065c2501e3fd5d47c9b0836185deeac
MD5 e3a45e45f74eaf92d4bf6945554ab0e1
BLAKE2b-256 1a3701b10d7a85f8d6b93e4646653c26c296806333e784004c944b1127790da4

See more details on using hashes here.

File details

Details for the file mebula-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mebula-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 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

Hashes for mebula-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 88468e2e12e7b5be450e13bad3120180e81a160ba768be100e66c8905ef3e30c
MD5 c2628960336f0f89aa462e4538f2a25f
BLAKE2b-256 5c16dc18bcb8d5573068d71cb87daba807a05cfe5d45994480e8d1d4acc50385

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page