Giter Club home page Giter Club logo

pilo's People

Contributors

bninja avatar cieplak avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pilo's Issues

Only the first field error is raised when parsing a Form

class TestFormExceptions(TestCase):

    def test_exceptions(self):

        class DatingProfile(pilo.Form):

            genders = ['male', 'female', 'neutral']

            name = String()
            email = String()
            postal_code = String(length=5)
            blurb = String(max_length=100)
            gender = String(choices=genders)
            sexual_preferences = List(String(choices=genders))
            likes = List(String())

        # Two field errors
        DatingProfile(
            name='William Henry Cavendish III',
            email='[email protected]',
            postal_code='9021',  # Invalid postal code
            blurb='I am a test fixture',
            gender='male',
            sexual_preferences=['female', 'neutral'],
            # Likes parameter missing
        )
======================================================================
ERROR: test_exceptions (tests.test_fields.TestFormExceptions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "pilo/tests/test_fields.py", line 424, in test_exceptions
    DatingProfile(**profile_params_with_two_errors)
  File "pilo/pilo/fields.py", line 1581, in __init__
    RaiseErrors()(*errors)
  File "pilo/pilo/fields.py", line 160, in __call__
    raise ex[0]
Invalid: postal_code - "9021" must have length >= 5

Releases are not correctly tagged

git tag releases are not correctly tagged, they should lie in the master branch, but it is not the case.

consider ec32d94 (tag: v0.6.0) release v0.6.0 which is not "inside" the master tree and then a62f43c release v0.6.0 which is but is not tagged

* a62f43c release v0.6.0
*   8c93870 Merge pull request #10 from bninja/poly-clone
|\
| | * ec32d94 (tag: v0.6.0) release v0.6.0
| |/
| * a7b2cad release instructions
| * d0b078c clone fields for type probe
|/
*   eab1693 Merge pull request #8 from cieplak/test-coverage

Need write access

@mjallday and I need write access to this. The cycle of waiting to update dependencies is a day and is a real blocker. The other option is to fork.

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.