Skip to main content

A simple and flixible mock library for python

Project description

foxmock

a mock library for python, It's simple and flixible

from foxmock import Mock

obj = Mock()
obj.call("get").ret("12345")
obj.index("age").ret(32)

token = obj.get()
assert token == "12345"
assert obj["age"] == 32

or you can inherit from Mock

from foxmock import Mock

class DynamicToken(Mock):
    def __init__(self):
        self.call("get").ret("12345")
        self.index("age").ret(32)


token = obj.get()
assert token == "12345"
assert obj["age"] == 32

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

foxmock-0.1.3.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

foxmock-0.1.3-py2.py3-none-any.whl (3.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file foxmock-0.1.3.tar.gz.

File metadata

  • Download URL: foxmock-0.1.3.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.12

File hashes

Hashes for foxmock-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c3b362930fd39e136c78016e1c4c1a39c41acf84adf0923470c44d8808c55d50
MD5 7078323dda8d3ac4cf3cf3f51dc735c6
BLAKE2b-256 b354e3078396e9e9fe8cbeaad8a4bbc5751a5afefc59a2f527c2da9374661e2e

See more details on using hashes here.

File details

Details for the file foxmock-0.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: foxmock-0.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.12

File hashes

Hashes for foxmock-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 73a8f48140b8a3b6031aca953ab3268604ed5c5b5c9e8065e0684fbbacff2764
MD5 189f29993acace6b4b3c3ee2bc14d9ab
BLAKE2b-256 bfd8288022be4c86d18e35798364562f0857dd43e794ce291af4401cf23d8394

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