Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Berj Chilingirian committed Sep 14, 2016
2 parents 0722acb + 9e1741d commit d0aadf1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aus_senate_audit/audit_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ class AuditRecorder(object):
:ivar str state: The abbreviated name of the state whose senate election is being audited.
"""
def __init__(self, state):
def __init__(self, state, audit_dir=AUDIT_DIR_NAME):
""" Initializes an :class:`AuditResults` object.
:param str state: The abbreviated name of the state whose senate election is being audited.
"""
self._state = state
self.audit_dir = audit_dir
if not exists(self.get_audit_dir_name()):
makedirs('{}/{}'.format(self.get_audit_dir_name(), ROUND_DIR_NAME))
self.record_audit_info(0, 0)
Expand All @@ -53,7 +54,7 @@ def get_audit_dir_name(self):
:returns: The audit directory name for the given state.
:rtype: str
"""
return AUDIT_DIR_NAME.format(self._state)
return self.audit_dir.format(self._state)

def get_file_path(self, file_name):
""" Returns the file path for the given file name within the audit directory.
Expand Down

0 comments on commit d0aadf1

Please sign in to comment.