Metadata-Version: 2.1
Name: mebula
Version: 0.1.1
Summary: 
Home-page: https://github.com/milliams/mebula
License: MIT
Author: Matt Williams
Author-email: matt@milliams.com
Requires-Python: >=3.6,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: google-api-python-client (>=1.7.11,<2.0.0)
Requires-Dist: oci (>=2.9.0,<3.0.0)
Project-URL: Repository, https://github.com/milliams/mebula
Description-Content-Type: text/x-rst

Mebula
======

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:

.. code:: python

    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.

