Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mic1on committed Aug 14, 2024
1 parent 04e66d2 commit 9f125cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ jobs:
timeout-minutes: 1 # 设置步骤超时时间为 1 分钟
env:
RABBITMQ_HOST: rabbitmq
RABBITMQ_USERNAME: admin
RABBITMQ_PASSWORD: admin
run: |
source .venv/bin/activate
pytest tests/
2 changes: 1 addition & 1 deletion src/use_rabbitmq/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(
self.parameters: Dict[str, Any] = {
"hostname": host or os.environ.get("RABBITMQ_HOST", "localhost"),
"port": port or int(os.environ.get("RABBITMQ_PORT", 5672)),
"username": username or os.environ.get("RABBITMQ_USER", "guest"),
"username": username or os.environ.get("RABBITMQ_USERNAME", "guest"),
"password": password or os.environ.get("RABBITMQ_PASSWORD", "guest"),
}
if kwargs:
Expand Down

0 comments on commit 9f125cd

Please sign in to comment.