Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Fixed Failing Enrollment Acceptance Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Clinton Blackburn committed Oct 20, 2014
1 parent 6f7f1d8 commit d7b75fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions acceptance_tests/test_course_enrollment.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _test_enrollment_metrics_and_graph(self):
i = 7
value = current_enrollment_count - enrollment_data[-(i + 1)]['count']
data_selector = 'data-stat-type=enrollment_change_last_%s_days' % i
self.assertSummaryPointValueEquals(data_selector, unicode(value))
self.assertSummaryPointValueEquals(data_selector, self.format_number(value))
self.assertSummaryTooltipEquals(data_selector,
u'The difference between the number of students enrolled at the end of the day yesterday and one week before.')

Expand Down Expand Up @@ -164,8 +164,8 @@ def _test_enrollment_country_table(self):
if country_name == UNKNOWN_COUNTRY_CODE:
country_name = u'Unknown Country'

expected = [country_name, expected_percent_display, enrollment['count']]
actual = [columns[0].text, columns[1].text, int(columns[2].text)]
expected = [country_name, expected_percent_display, self.format_number(enrollment['count'])]
actual = [columns[0].text, columns[1].text, columns[2].text]
self.assertListEqual(actual, expected)
self.assertIn('text-right', columns[1].get_attribute('class'))

Expand Down

0 comments on commit d7b75fe

Please sign in to comment.