django-timepiece icon indicating copy to clipboard operation
django-timepiece copied to clipboard

Failing tests

Open sgentilini opened this issue 11 years ago • 0 comments

Hi, I am a newbie on github, hope it's the right place to give this info...

I've cloned your repo on my account, cloned it on my dev machine, made changes in the project, created the database and run the test with python run_tests.py .

Everything is smooth except two tests are failing:

======================================================================
FAIL: testClockInBadActivity (timepiece.entries.tests.test_timesheet.ClockInTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/simonegentilini/Dropbox/workspace/django-timepiece/timepiece/entries/tests/test_timesheet.py", line 539, in testClockInBadActivity
    self.assertFormError(response, 'form', None, err_msg)
  File "/Users/simonegentilini/.virtualenvs/timepiece_env/lib/python2.7/site-packages/django/test/testcases.py", line 715, in assertFormError
    (form, i, err, non_field_errors))
AssertionError: The form 'form' in context 0 does not contain the non-field error 'sick/personal is not allowed for this project. Please choose among development, and Work' (actual errors: <ul class="errorlist"><li>sick/personal is not allowed for this project. Please choose among Work, and development</li></ul>)

======================================================================
FAIL: testBadActivity (timepiece.entries.tests.test_timesheet.CreateEditEntry)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/simonegentilini/Dropbox/workspace/django-timepiece/timepiece/entries/tests/test_timesheet.py", line 1263, in testBadActivity
    self.assertFormError(response, 'form', None, err_msg)
  File "/Users/simonegentilini/.virtualenvs/timepiece_env/lib/python2.7/site-packages/django/test/testcases.py", line 715, in assertFormError
    (form, i, err, non_field_errors))
AssertionError: The form 'form' in context 0 does not contain the non-field error 'sick/personal is not allowed for this project. Please choose among development, and Work' (actual errors: <ul class="errorlist"><li>sick/personal is not allowed for this project. Please choose among Work, and development</li></ul>)

sgentilini avatar Nov 14 '13 16:11 sgentilini