Skip to content

Commit

Permalink
chore: CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Two Dev committed Dec 11, 2024
1 parent 16dad0c commit 8196011
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Run pre-commit
uses: pre-commit/[email protected]
- name: Lint
run: |
make lint
- name: Run tests
- name: Tests
run: |
python -m pytest tests
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ black==24.3.0
coverage[toml]==7.6.1
pre-commit==3.7.0
isort==5.13.2
flake8==7.1.1
mypy==1.11.2
pytest==8.3.3
pytest-asyncio==0.24.0
Expand Down
2 changes: 1 addition & 1 deletion tests/test_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_request_hook(httpserver: HTTPServer):

def test_request_hook_no_return(httpserver: HTTPServer):
httpserver.expect_request("/hooks").respond_with_data(b"OK")
_ = tls_requests.get(httpserver.url_for("/hooks"), hooks={"request": [log_request_no_return]})
response = tls_requests.get(httpserver.url_for("/hooks"), hooks={"request": [log_request_no_return]})
assert response.status_code == 200
assert response.request.headers.get("X-Hook") == "123456"

Expand Down

0 comments on commit 8196011

Please sign in to comment.