-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
- run: | ||
command: sudo pip install --upgrade pip | ||
- run: | ||
command: sudo pip install tox | ||
command: sudo pip install tox mock | ||
- run: | ||
command: tox -e py<< parameters.tox_version >>-sync,py<< parameters.tox_version >>-async | ||
|
||
|
@@ -66,54 +66,54 @@ workflows: | |
build: | ||
jobs: | ||
- test: | ||
name: 'test_27' | ||
docker_version: '2.7' | ||
tox_version: '27' | ||
name: "test_27" | ||
docker_version: "2.7" | ||
tox_version: "27" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
shortcuts
Author
Member
|
||
filters: | ||
tags: | ||
only: /.*/ | ||
- test: | ||
name: 'test_34' | ||
docker_version: '3.4' | ||
tox_version: '34' | ||
name: "test_34" | ||
docker_version: "3.4" | ||
tox_version: "34" | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- test: | ||
name: 'test_35' | ||
docker_version: '3.5' | ||
tox_version: '35' | ||
name: "test_35" | ||
docker_version: "3.5" | ||
tox_version: "35" | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- test: | ||
name: 'test_36' | ||
docker_version: '3.6' | ||
tox_version: '36' | ||
name: "test_36" | ||
docker_version: "3.6" | ||
tox_version: "36" | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- test: | ||
name: 'test_37' | ||
docker_version: '3.7' | ||
tox_version: '37' | ||
name: "test_37" | ||
docker_version: "3.7" | ||
tox_version: "37" | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- test: | ||
name: 'test_38' | ||
docker_version: '3.8' | ||
tox_version: '38' | ||
name: "test_38" | ||
docker_version: "3.8" | ||
tox_version: "38" | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- format: | ||
name: 'format' | ||
name: "format" | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- types: | ||
name: 'types' | ||
name: "types" | ||
filters: | ||
tags: | ||
only: /.*/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
VERSION = "2.6.0" | ||
VERSION = "2.6.1" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[metadata] | ||
name = algoliasearch | ||
version = 2.6.0 | ||
version = 2.6.1 | ||
author = Algolia Team | ||
author_email = [email protected] | ||
maintainer = Algolia Team | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
import unittest | ||
import json | ||
import requests | ||
import mock | ||
|
||
from requests.models import Response | ||
|
||
|
@@ -12,7 +13,6 @@ | |
from algoliasearch.search_index import SearchIndex | ||
from tests.helpers.factory import Factory as F | ||
from tests.helpers.misc import Unicode, rule_without_metadata | ||
from unittest.mock import MagicMock | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
shortcuts
Author
Member
|
||
|
||
|
||
class TestSearchIndex(unittest.TestCase): | ||
|
@@ -481,7 +481,7 @@ def side_effect(req, **kwargs): | |
|
||
client = SearchClient.create("foo", "bar") | ||
client._transporter._requester._session = requests.Session() | ||
client._transporter._requester._session.send = MagicMock(name="send") | ||
client._transporter._requester._session.send = mock.MagicMock(name="send") | ||
client._transporter._requester._session.send.side_effect = side_effect | ||
index = F.index(client, "test") | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ passenv = | |
ALGOLIA_ADMIN_KEY_MCM | ||
commands = | ||
py27-sync: python -m unittest discover -v | ||
py27-async: python -c 'print "No asynchronous tests for Python 2.7, skipping."' | ||
py27-async: python -c 'print "No asynchronous tests for Python 2.7, skipping.";exit(0);' | ||
This comment has been minimized.
Sorry, something went wrong.
tkrugg
Collaborator
|
||
py{34,35,36}-{sync,async}: python -m unittest discover -v | ||
py{37,38,39}-{sync,async}: python -m unittest discover -v -k {posargs:*} | ||
|
||
|
Theses changes look unecessary or accidental. Could you double check?