Skip to content

Commit

Permalink
Fix spacing/indentation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alisaifee committed May 15, 2020
1 parent d5b48e1 commit 83b09dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion flask_limiter/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def init_app(self, app):
HEADERS.REMAINING: config.get(
C.HEADER_REMAINING, "X-RateLimit-Remaining"
),
HEADERS.LIMIT: config.get(
HEADERS.LIMIT: config.get(
C.HEADER_LIMIT, "X-RateLimit-Limit"
),
HEADERS.RETRY_AFTER: config.get(
Expand Down
7 changes: 3 additions & 4 deletions tests/test_flask_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,10 +607,9 @@ def root():
self.assertEqual(429, cli.put("/").status_code)

def test_decorated_dynamic_limits(self):
app, limiter = self.build_app({
"X": "2 per second"
},
default_limits=["1/second"])
app, limiter = self.build_app(
{"X": "2 per second"}, default_limits=["1/second"]
)

def request_context_limit():
limits = {
Expand Down

0 comments on commit 83b09dd

Please sign in to comment.