Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
- '3.10'
- '3.9'
services:
nginx:
image: kennethreitz/httpbin
httpbin:
image: mccutchen/go-httpbin
ports:
- 8080:80
- 8080:8080

steps:
# Install dependencies, with caching
Expand Down
6 changes: 2 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# Containers needed to test all backend services locally
services:
httpbin:
image: kennethreitz/httpbin
image: mccutchen/go-httpbin
container_name: httpbin
ports:
# Use an unprivileged port to support running the Docker daemon as a non-root user (Rootless mode).
# See https://docs.docker.com/engine/security/rootless/#networking-errors
- ${HTTPBIN_CUSTOM_PORT:-8080}:80
- ${HTTPBIN_CUSTOM_PORT:-8080}:8080

httpbin-custom:
container_name: httpbin-custom
Expand Down
1 change: 0 additions & 1 deletion test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
CACHE_NAME = 'pytest_cache'
HTTPBIN_METHODS = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE']
HTTPBIN_FORMATS = [
'brotli',
'deflate',
'deny',
'encoding/utf8',
Expand Down
2 changes: 1 addition & 1 deletion test/integration/base_backend_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ async def test_cookies_with_redirect(self):
session.cookie_jar.clear()
await session.get(httpbin('cookies/set?test_cookie=value'))

cookies = session.cookie_jar.filter_cookies(httpbin())
cookies = session.cookie_jar.filter_cookies(httpbin('cookies'))
assert cookies['test_cookie'].value == 'value'

async def test_autoclose(self):
Expand Down
5 changes: 4 additions & 1 deletion test/unit/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from http.cookies import SimpleCookie
from unittest.mock import AsyncMock, MagicMock, patch

import aiohttp
import pytest
from aiohttp import ClientResponse
from yarl import URL
Expand All @@ -13,7 +14,8 @@

pytestmark = [pytest.mark.asyncio]


aiohttp_314 = tuple(int(x) for x in aiohttp.__version__.split('.')[:2]) >= (3, 14)
extra_args = {'stream_writer': MagicMock()} if aiohttp_314 else {}
FakeCachedResponse = CachedResponse(method='GET', reason='OK', status=200, url='url', version='1.1')
FakeClientResponse = ClientResponse(
method='GET',
Expand All @@ -26,6 +28,7 @@
# loop=asyncio.get_event_loop(),
loop=MagicMock(),
session=None, # type: ignore[arg-type]
**extra_args, # type: ignore[arg-type]
)


Expand Down
Loading