GithubHelp home page GithubHelp logo

dado's People

Contributors

toejough avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dado's Issues

can't be installed with setup.py

setup.py, for reasons I can't find, doesn't recognize wheel-only distributions as installable - it requires source distributions.

flit, for reasons outlined here, intentionally doesn't build source distributions.

The combination means that anyone who wants to use this library in a module they wish to distribute with setup.py can't.

sys.modules is called on import

classic error - the modules dict is defined at import time as a default, so if dado happens to be imported before the targeted test module, that module won't show up and dado will freak out when it's called and tries to update the calling module.

handle user input errors more gracefully

as in, if the user forgets to pass a list of arguments in their test (data_driven(['foo'], {'first': foo}) instead of data_driven(['foo'], {'first': [foo]})), we should give them a better error than:

File ".../lib/python3.5/site-packages/dado/dado.py", line 63, in dd_decorator
    new_test, new_name = build_test(test, suffix, names, args)
  File ".../lib/python3.5/site-packages/dado/dado.py", line 50, in build_test
    kwargs = {k: v for k, v in zip(arg_names, args)}
TypeError: zip argument #2 must support iteration

make dado calls stackable

Make the dado calls stackable, so that you can create a test matrix like

@data_driven(['foo'], <4 options for foo>)
@data_driven(['bar'], <5 options for bar>)
def test_combo(...

instead of

@data_driven(['foo', 'bar'], <20 options for foo, bar>)
def test_combo(...

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.