GithubHelp home page GithubHelp logo

mozilla / basket Goto Github PK

View Code? Open in Web Editor NEW

This project forked from buchanae/basket

11.0 10.0 10.0 8.67 MB

INACTIVE - Moved to the Mozilla Marketing Org

Home Page: https://github.com/mozmar/basket/

inactive unmaintained

basket's Introduction

basket's People

Contributors

bensternthal avatar dpoirier avatar glogiotatidis avatar jbalogh avatar jgmize avatar jlongster avatar meandavejustice avatar osmose avatar pmac avatar pmclanahan avatar rik avatar sancus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

basket's Issues

README says Python 2.6, tests use Python 2.7

README.rst says the requirement is Python 2.6

apps.news.tests.UpdateUserTests uses assertDictEqual which wasn't added until Python 2.7.

There are several ways this could be addressed:

  • Update requirement to Python 2.7
  • Upgrade to at least Django 1.3, which provides a backport of the Python 2.7 unittest features
  • Install and use the unittest2 package, which again provides a backport of the Python 2.7 unittest features
  • Rewrite the tests

Refactor huge tests file

news/tests.py is almost 1000 lines long, it's time to refactor it into separate test files (news/tests/test_aaa,py, news/tests/test_xyz.py, etc)

Tests don't run with `manage.py test`

Really, no tests? This makes Sad Panda even sadder!

These tests should include a test that the user endpoint accepts both GET and POST request as that was the issue that made me find this out in the first place.

When a SOAP connection doesn't respond, service simply quits with no log

When the HTTP connection used by SOAP doesn't respond, the service quits and doesn't log anything. We need to catch this exception and make sure it gets logged correctly.

Specific traceback:

File "/Users/james/projects/mozilla/basket/venv/lib/python2.6/site-packages/suds/transport/http.
py", line 118, in u2open
return url.open(u2request, timeout=tm)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 3
83, in open
response = self._open(req, data)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 4
01, in _open
'_open', req)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 3
61, in _call_chain
result = func(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 1
138, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 1
105, in do_open
raise URLError(err)
urllib2.URLError:

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.