Review Board 1.6.3

HUE-713 [jobsub] Reenable all the unit tests

Review Request #2363 - submitted 1 year, 6 months ago

Romain Rigaux Reviewers
hue
HUE-713 enricoberti, abec
None hue-rw
commit 577fb44d7c929333542ccebb071c90d912a61a25
Author: Romain Rigaux <romain@cloudera.com>
Date:   Fri May 25 12:30:38 2012 -0700

    HUE-713 [jobsub] Reenable all the unit tests
    
    Move tests to use the new liboozie
    Fix the tests
    Run two examples
    Improve liboozie test API with more debugging info
    Remove bad dependency in JobBrowser

:100644 100644 0995185... 7e41067... M	apps/jobbrowser/src/jobbrowser/tests.py
:100644 100644 3ee239c... c7522de... M	apps/jobsub/src/jobsub/fixtures/example_data.xml
:100644 100644 f121284... 2e92626... M	apps/jobsub/src/jobsub/tests.py
:100644 100644 fecc1d9... 7e4d72c... M	apps/jobsub/src/jobsub/views.py
:100644 100644 d6aa3e8... 42fdd3a... M	apps/oozie/src/oozie/models.py
:100644 100644 7950627... 6de3794... M	desktop/libs/liboozie/src/liboozie/oozie_api_test.py
:100644 100644 1a076d7... 9666c07... M	desktop/libs/liboozie/src/liboozie/types.py
Ran all tests
apps/jobbrowser/src/jobbrowser/tests.py
Revision 0995185 New Change
... 20 lines hidden [Expand]
21
from nose.plugins.skip import SkipTest
21
from nose.plugins.skip import SkipTest
22

   
22

   
23
from desktop.lib.django_test_util import make_logged_in_client
23
from desktop.lib.django_test_util import make_logged_in_client
24
from hadoop import mini_cluster
24
from hadoop import mini_cluster
25
from jobsub.models import JobDesign
25
from jobsub.models import JobDesign
26
from jobsub.tests import parse_out_id, watch_till_complete
26
from liboozie.oozie_api_test import OozieServerProvider

   
27

   
27
from jobbrowser import models, views
28
from jobbrowser import models, views
28

   
29

   

   
30

   
29
def test_dots_to_camel_case():
31
def test_dots_to_camel_case():
30
  assert_equal("fooBar", models.dots_to_camel_case("foo.bar"))
32
  assert_equal("fooBar", models.dots_to_camel_case("foo.bar"))
31
  assert_equal("fooBarBaz", models.dots_to_camel_case("foo.bar.baz"))
33
  assert_equal("fooBarBaz", models.dots_to_camel_case("foo.bar.baz"))
32
  assert_equal("foo", models.dots_to_camel_case("foo"))
34
  assert_equal("foo", models.dots_to_camel_case("foo"))
33
  assert_equal("foo.", models.dots_to_camel_case("foo."))
35
  assert_equal("foo.", models.dots_to_camel_case("foo."))
... 260 lines hidden [Expand]
apps/jobsub/src/jobsub/tests.py
Revision f121284 New Change
 
apps/jobsub/src/jobsub/views.py
Revision fecc1d9 New Change
 
apps/jobsub/src/jobsub/fixtures/example_data.xml
Revision 3ee239c New Change
 
apps/oozie/src/oozie/models.py
Revision d6aa3e8 New Change
 
desktop/libs/liboozie/src/liboozie/oozie_api_test.py
Revision 7950627 New Change
 
desktop/libs/liboozie/src/liboozie/types.py
Revision 1a076d7 New Change
 
  1. apps/jobbrowser/src/jobbrowser/tests.py: Loading...
  2. apps/jobsub/src/jobsub/tests.py: Loading...
  3. apps/jobsub/src/jobsub/views.py: Loading...
  4. apps/jobsub/src/jobsub/fixtures/example_data.xml: Loading...
  5. apps/oozie/src/oozie/models.py: Loading...
  6. desktop/libs/liboozie/src/liboozie/oozie_api_test.py: Loading...
  7. desktop/libs/liboozie/src/liboozie/types.py: Loading...