Skip to content

Commit

Permalink
Make failing tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbacon committed May 17, 2016
1 parent b8ea6df commit aa33bc0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_import_hscic_prescribing(self):
call_command('convert_hscic_prescribing', *args, **opts)

test_output = 'frontend/tests/fixtures/commands/'
test_output += 'hscic_prescribing_sample_test.csv'
test_output += 'hscic_prescribing_sample_test.CSV'
reader = csv.reader(open(test_output, 'rU'))
rows = []
for row in reader:
Expand Down Expand Up @@ -50,5 +50,3 @@ def test_import_hscic_prescribing(self):
# Test for 4-character chemical IDs.
self.assertEqual(rows[0][3], '0102000N0')
self.assertEqual(rows[-1][3], '2138')


Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def setUpModule():
db_user = utils.get_env_setting('DB_USER')
db_pass = utils.get_env_setting('DB_PASS')
test_file = 'frontend/tests/fixtures/commands/'
test_file += 'T201509PDPI+BNFT_formatted.CSV'
test_file += 'T201509PDPI+BNFT_formatted.csv'
new_opts = {
'db_name': db_name,
'db_user': db_user,
Expand Down
2 changes: 1 addition & 1 deletion openprescribing/frontend/tests/test_api_measures.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def setUpModule():
db_user = utils.get_env_setting('DB_USER')
db_pass = utils.get_env_setting('DB_PASS')
test_file = 'frontend/tests/fixtures/commands/'
test_file += 'T201509PDPI+BNFT_formatted.CSV'
test_file += 'T201509PDPI+BNFT_formatted.csv'
new_opts = {
'db_name': db_name,
'db_user': db_user,
Expand Down

0 comments on commit aa33bc0

Please sign in to comment.