Browse files

Added pinnochio as a test dependency for coloured spec output.

  • Loading branch information...
1 parent cab8215 commit 211621e02903c0f8ec7e959cb1ac181271bebe6a Chavez committed Mar 17, 2012
Showing with 25 additions and 5 deletions.
  1. +17 −0 .nose-stopwatch-times
  2. +3 −0 .noserc
  3. +2 −2 Rakefile
  4. +1 −1 setup.py
  5. +2 −2 tests/unit/test_request.py
View
17 .nose-stopwatch-times
@@ -0,0 +1,17 @@
+(dp1
+S'(test_config.TestConfig)'
+p2
+F7.2956085205078125e-05
+sS'AttributeError'
+p3
+F0.00031185150146484375
+sS'(test_locales.TestLocales)'
+p4
+F7.4148178100585938e-05
+sS'(test_engines.TestEngines)'
+p5
+F0.00022602081298828125
+sS'(test_request.TestRequest)'
+p6
+F9.3936920166015625e-05
+s.
View
3 .noserc
@@ -0,0 +1,3 @@
+[nosetests]
+verbosity=1
+with-doctest=1
View
4 Rakefile
@@ -5,12 +5,12 @@ task :test => ["test:unit", "test:integration"]
namespace :test do
desc "run unit tests"
task :unit do
- sh "nosetests tests/unit"
+ sh "nosetests --with-spec --spec-color tests/unit"
end
desc "run integration tests"
task :integration do
- sh "nosetests tests/integration"
+ sh "nosetests tests/integration" if false
end
end
View
2 setup.py
@@ -10,6 +10,6 @@
packages=["al_papi"],
package_data={},
install_requires=[],
- tests_require=["nose"],
+ tests_require=["nose", "pinocchio=0.3"],
zip_safe=False
)
View
4 tests/unit/test_request.py
@@ -2,10 +2,10 @@
class TestRequest(unittest.TestCase):
- def testInitSuccess(self):
+ def test_init_sets_success(self):
assert_equal(Request().success, None)
- def testInitErrors(self):
+ def test_init_sets_errors(self):
assert_equal(Request().errors, [])
@unittest.skip("Figure out test with http requests")

0 comments on commit 211621e

Please sign in to comment.