Giter Site home page Giter Site logo

known_side_effects's People

Contributors

p4rk avatar stevethatcodes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

known_side_effects's Issues

Implement an always function

Implement an always function.

This function should cause the mock to always return what is passed in regardless of what parameters it was called with.

This should include a always_rasie function.

Implement Extend

When using the known side effects library it needs to be imported to add the when function to the Mock class. When imported it isn't used anywhere and causes lint issues.

Add a extends function to the library to enable extending of the Mock rather than just doing it.

import known_side_effects

known_side_effects.extend(Mock)

Missing files in sdist

It appears that the manifest is missing at least one file necessary to build
from the sdist for version 0.1.1. You're in good company, about 5% of other
projects updated in the last year are also missing files.

+ /tmp/venv/bin/pip3 wheel --no-binary known-side-effects -w /tmp/ext known-side-effects==0.1.1
Looking in indexes: http://10.10.0.139:9191/root/pypi/+simple/
Collecting known-side-effects==0.1.1
  Downloading http://10.10.0.139:9191/root/pypi/%2Bf/c06/038be7efc3414/known_side_effects-0.1.1.tar.gz (5.8 kB)
    ERROR: Command errored out with exit status 1:
     command: /tmp/venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-z4wum6er/known-side-effects/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-z4wum6er/known-side-effects/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-wheel-z4wum6er/known-side-effects/pip-egg-info
         cwd: /tmp/pip-wheel-z4wum6er/known-side-effects/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-wheel-z4wum6er/known-side-effects/setup.py", line 3, in <module>
        with open("../README.md", "r") as fh:
    FileNotFoundError: [Errno 2] No such file or directory: '../README.md'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Implement an otherwise function

Implement an otherwise function that defines what the default behaviour should be if none of the parameters are matched.

This should include otherwise_raise.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.