Skip to content

Commit

Permalink
feat(app): rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
MorvanZhou committed Sep 18, 2024
1 parent 39a6c5e commit cf41d8d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions tests/test_core_remote.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import datetime
import os
import shutil
import time
import unittest
from copy import deepcopy
Expand Down Expand Up @@ -745,4 +743,3 @@ async def test(ip="123"):
with self.assertRaises(HTTPException):
await test(ip="123")

shutil.rmtree(os.path.join(os.path.dirname(__file__), "analytics"), ignore_errors=True)
1 change: 1 addition & 0 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def drop_env(file=".env.test.local"):
for c in cs:
k, _ = c.split("=")
os.environ.pop(k)
shutil.rmtree(Path(__file__) / "analytics", ignore_errors=True)


def skip_no_connect(f):
Expand Down

0 comments on commit cf41d8d

Please sign in to comment.