Coder Social home page Coder Social logo

exercise-toes's Introduction

exercise-toes

We believe in this fight down to our toes. Generic home for endpoints for organizing APIs, webhooks, website utils, etc.

This is a service running in production, pared down to be an interview question about implementing an ActBlue webhook that opts new donors into our text message program.

How to run tests

First: make build up

Then you can edit code and run tests (no need to build or up again): make test

How to run locally (not needed for interview)

  1. make build up
  2. Open http://0.0.0.0:5005/

exercise-toes's People

Contributors

hkhanna avatar jasonkb avatar joegoldbeck avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

exercise-toes's Issues

Country does not match between sample_donation.json and test_actblue.py

Commit hash at time of bug:
01d83cd010c11c1fd65733565eb0e56bbfd3db10
Writing steps to reproduce would give away challenge.

Results from test_mobile_commons_profile_upload:

    def check_mobile_commons_request_body(request):
        body = json.loads(request.body)
        expected = {
            "phone_number": "15105016227",
            "email": "[email protected]",
            "postal_code": "94801",
            "first_name": "Mary",
            "last_name": "Smith",
            "street1": "20 Belvedere Ave.",
            "city": "Richmond",
            "state": "CA",
            "country": "US",
            "opt_in_path_id": "279022",
        }
        for k, v in expected.items():
>           assert body[k] == v
E           AssertionError: assert 'United States' == 'US'
E             - United States
E             + US

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.