mox3


Namemox3 JSON
Version 1.1.0 PyPI version JSON
download
home_pagehttps://docs.openstack.org/mox3/latest/
SummaryMock object framework for Python
upload_time2020-06-04 10:42:17
maintainer
docs_urlNone
authorOpenStack
requires_python>=3.6
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            =========================================
Mox3 - Mock object framework for Python 3
=========================================

.. image:: https://governance.openstack.org/tc/badges/mox3.svg
    :target: https://governance.openstack.org/tc/reference/tags/index.html

Mox3 is an unofficial port of the Google mox framework
(http://code.google.com/p/pymox/) to Python 3. It was meant to be as compatible
with mox as possible, but small enhancements have been made. The library was
tested on Python version 3.2, 2.7 and 2.6.

Use at your own risk ;)

To install:

  $ python setup.py install

Running Tests
-------------
The testing system is based on a combination of tox and testr. The canonical
approach to running tests is to simply run the command `tox`. This will
create virtual environments, populate them with depenedencies and run all of
the tests that OpenStack CI systems run. Behind the scenes, tox is running
`testr run --parallel`, but is set up such that you can supply any additional
testr arguments that are needed to tox. For example, you can run:
`tox -- --analyze-isolation` to cause tox to tell testr to add
--analyze-isolation to its argument list.

It is also possible to run the tests inside of a virtual environment
you have created, or it is possible that you have all of the dependencies
installed locally already. In this case, you can interact with the testr
command directly. Running `testr run` will run the entire test suite. `testr
run --parallel` will run it in parallel (this is the default incantation tox
uses.) More information about testr can be found at:
https://wiki.openstack.org/wiki/Testr

Basic Usage
-----------

The basic usage of mox3 is the same as with mox, but the initial import should
be made from the mox3 module:

  from mox3 import mox

To learn how to use mox3 you may check the documentation of the original mox
framework:

  http://code.google.com/p/pymox/wiki/MoxDocumentation

Original Copyright
------------------

Mox is Copyright 2008 Google Inc, and licensed under the Apache
License, Version 2.0; see the file COPYING.txt for details.  If you would
like to help us improve Mox, join the group.

OpenStack Fork
--------------

* Free software: Apache license
* Documentation: https://docs.openstack.org/mox3/latest/
* Source: https://opendev.org/openstack/mox3
* Bugs: https://bugs.launchpad.net/python-mox3




            

Raw data

            {
    "_id": null,
    "home_page": "https://docs.openstack.org/mox3/latest/",
    "name": "mox3",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "OpenStack",
    "author_email": "openstack-discuss@lists.openstack.org",
    "download_url": "https://files.pythonhosted.org/packages/90/ac/2220e111a63e32872567d6e677b4b36163c0c5ac766ef76d00dee3eabdf9/mox3-1.1.0.tar.gz",
    "platform": "",
    "description": "=========================================\nMox3 - Mock object framework for Python 3\n=========================================\n\n.. image:: https://governance.openstack.org/tc/badges/mox3.svg\n    :target: https://governance.openstack.org/tc/reference/tags/index.html\n\nMox3 is an unofficial port of the Google mox framework\n(http://code.google.com/p/pymox/) to Python 3. It was meant to be as compatible\nwith mox as possible, but small enhancements have been made. The library was\ntested on Python version 3.2, 2.7 and 2.6.\n\nUse at your own risk ;)\n\nTo install:\n\n  $ python setup.py install\n\nRunning Tests\n-------------\nThe testing system is based on a combination of tox and testr. The canonical\napproach to running tests is to simply run the command `tox`. This will\ncreate virtual environments, populate them with depenedencies and run all of\nthe tests that OpenStack CI systems run. Behind the scenes, tox is running\n`testr run --parallel`, but is set up such that you can supply any additional\ntestr arguments that are needed to tox. For example, you can run:\n`tox -- --analyze-isolation` to cause tox to tell testr to add\n--analyze-isolation to its argument list.\n\nIt is also possible to run the tests inside of a virtual environment\nyou have created, or it is possible that you have all of the dependencies\ninstalled locally already. In this case, you can interact with the testr\ncommand directly. Running `testr run` will run the entire test suite. `testr\nrun --parallel` will run it in parallel (this is the default incantation tox\nuses.) More information about testr can be found at:\nhttps://wiki.openstack.org/wiki/Testr\n\nBasic Usage\n-----------\n\nThe basic usage of mox3 is the same as with mox, but the initial import should\nbe made from the mox3 module:\n\n  from mox3 import mox\n\nTo learn how to use mox3 you may check the documentation of the original mox\nframework:\n\n  http://code.google.com/p/pymox/wiki/MoxDocumentation\n\nOriginal Copyright\n------------------\n\nMox is Copyright 2008 Google Inc, and licensed under the Apache\nLicense, Version 2.0; see the file COPYING.txt for details.  If you would\nlike to help us improve Mox, join the group.\n\nOpenStack Fork\n--------------\n\n* Free software: Apache license\n* Documentation: https://docs.openstack.org/mox3/latest/\n* Source: https://opendev.org/openstack/mox3\n* Bugs: https://bugs.launchpad.net/python-mox3\n\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Mock object framework for Python",
    "version": "1.1.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "7b4e0d36acea435873bc36c65d6e40e7",
                "sha256": "ecbd2b48cfa282d7c666f866125edbd274f7129ebb45ef3edda10d4d39e21ef2"
            },
            "downloads": -1,
            "filename": "mox3-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7b4e0d36acea435873bc36c65d6e40e7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 43571,
            "upload_time": "2020-06-04T10:42:13",
            "upload_time_iso_8601": "2020-06-04T10:42:13.104323Z",
            "url": "https://files.pythonhosted.org/packages/93/74/6e86b70e9533ec1aa5529761ef969d79a4475173dcc1421338f49033666d/mox3-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "0eff74d3a85ec4d4dc6acf7f524ca816",
                "sha256": "8a526b7b9b6341f541a9aef3e08c93fd84a5373fe89d4cc51dd571f085b2363c"
            },
            "downloads": -1,
            "filename": "mox3-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "0eff74d3a85ec4d4dc6acf7f524ca816",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 44211,
            "upload_time": "2020-06-04T10:42:17",
            "upload_time_iso_8601": "2020-06-04T10:42:17.463671Z",
            "url": "https://files.pythonhosted.org/packages/90/ac/2220e111a63e32872567d6e677b4b36163c0c5ac766ef76d00dee3eabdf9/mox3-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-06-04 10:42:17",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "mox3"
}
        
Elapsed time: 0.01321s