Skip to content

Commit

Permalink
Run make format with latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Nov 4, 2024
1 parent 15392a4 commit 202a4de
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 10 deletions.
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@

import pytest
import requests
from pytest_mock.plugin import MockerFixture

from kinto_http import AsyncClient, Client
from kinto_http.constants import DEFAULT_AUTH, SERVER_URL, USER_AGENT
from kinto_http.endpoints import Endpoints
from kinto_http.exceptions import KintoException
from kinto_http.session import Session
from pytest_mock.plugin import MockerFixture

from .support import create_user, get_200, get_503, mock_response

Expand Down
1 change: 1 addition & 0 deletions tests/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from urllib.parse import urljoin

import requests

from kinto_http.constants import DEFAULT_AUTH
from kinto_http.exceptions import KintoException

Expand Down
3 changes: 2 additions & 1 deletion tests/test_async_client.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import re

import pytest
from pytest_mock import MockerFixture

from kinto_http import AsyncClient as Client
from kinto_http import BearerTokenAuth, BucketNotFound, KintoException
from kinto_http.constants import DO_NOT_OVERWRITE, SERVER_URL
from kinto_http.patch_type import JSONPatch, MergePatch
from kinto_http.session import create_session
from pytest_mock import MockerFixture

from .support import build_response, get_http_error, mock_response

Expand Down
3 changes: 2 additions & 1 deletion tests/test_batch.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import pytest
from pytest_mock.plugin import MockerFixture

from kinto_http import Client
from kinto_http.batch import BatchSession
from kinto_http.exceptions import KintoException
from pytest_mock.plugin import MockerFixture


def test_requests_are_stacked(batch_setup: Client, mocker: MockerFixture):
Expand Down
3 changes: 2 additions & 1 deletion tests/test_cli_utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import argparse

from pytest_mock import MockerFixture

from kinto_http import BearerTokenAuth, cli_utils
from kinto_http.constants import ALL_PARAMETERS
from pytest_mock import MockerFixture

from .support import assert_option_strings

Expand Down
3 changes: 2 additions & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import re

import pytest
from pytest_mock.plugin import MockerFixture

from kinto_http import (
BearerTokenAuth,
BucketNotFound,
Expand All @@ -11,7 +13,6 @@
)
from kinto_http.constants import DO_NOT_OVERWRITE, SERVER_URL
from kinto_http.patch_type import JSONPatch, MergePatch
from pytest_mock.plugin import MockerFixture

from .support import build_response, get_http_error, mock_response

Expand Down
1 change: 1 addition & 0 deletions tests/test_endpoints.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from typing import Dict, Tuple

import pytest

from kinto_http import KintoException
from kinto_http.endpoints import Endpoints

Expand Down
1 change: 1 addition & 0 deletions tests/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from unittest import mock

import pytest

from kinto_http import BucketNotFound, CollectionNotFound, KintoException, replication
from kinto_http.patch_type import JSONPatch

Expand Down
3 changes: 2 additions & 1 deletion tests/test_functional_async.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import pytest
from pytest_mock import MockerFixture

from kinto_http import BucketNotFound, CollectionNotFound, KintoException
from kinto_http.patch_type import JSONPatch
from pytest_mock import MockerFixture

from .support import get_user_id

Expand Down
3 changes: 2 additions & 1 deletion tests/test_logging.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from kinto_http import Client
from pytest_mock.plugin import MockerFixture

from kinto_http import Client


def test_create_bucket_logs_info_message(client_setup: Client, mocker: MockerFixture):
mocked_logger = mocker.patch("kinto_http.client.logger")
Expand Down
3 changes: 2 additions & 1 deletion tests/test_replication.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from pytest_mock import MockerFixture

from kinto_http import Client, exceptions
from kinto_http.replication import replicate
from pytest_mock import MockerFixture

from .support import mock_response

Expand Down
5 changes: 3 additions & 2 deletions tests/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
from typing import Tuple
from unittest.mock import MagicMock

import kinto_http
import pkg_resources
import pytest
from pytest_mock.plugin import MockerFixture

import kinto_http
from kinto_http.constants import USER_AGENT
from kinto_http.exceptions import BackoffException, KintoException
from kinto_http.session import Session, create_session
from pytest_mock.plugin import MockerFixture

from .support import get_200, get_403, get_503, get_http_response

Expand Down

0 comments on commit 202a4de

Please sign in to comment.