Skip to content

Commit

Permalink
Fixed unit test bug
Browse files Browse the repository at this point in the history
  • Loading branch information
arcward committed Apr 18, 2017
1 parent a3b77bf commit 6472918
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion martapy/rail.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def arrivals(self):
@property
def url(self):
"""``RailClient.base_url`` formatted with API key"""
return self.base_url.format(self.api_key)
return self.base_url.format(api_key=self.api_key)


class Arrivals(list):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_arrivals.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def setUp(self):
conf_file = os.path.join(os.path.dirname(os.path.abspath(__file__)),
'config.ini')
test_config.read(conf_file)
api_key = test_config.get('rail', 'api_key')
api_key = test_config.get('rail', 'apikey')
self.api_client = RailClient(api_key=api_key)
self.r = self.api_client.arrivals()

Expand Down

0 comments on commit 6472918

Please sign in to comment.