forked from thumbor/thumbor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove mock library dependency (thumbor#1396)
- Loading branch information
1 parent
86fef3d
commit a8c789e
Showing
34 changed files
with
53 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,8 @@ | |
# Copyright (c) 2011 globo.com [email protected] | ||
|
||
from os.path import abspath | ||
from unittest import mock | ||
|
||
import mock | ||
from preggy import expect | ||
from tornado.testing import gen_test | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,8 @@ | |
# Copyright (c) 2011 globo.com [email protected] | ||
|
||
from os.path import abspath | ||
from unittest import mock | ||
|
||
import mock | ||
from preggy import expect | ||
from tornado.testing import gen_test | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,8 @@ | |
# Copyright (c) 2011 globo.com [email protected] | ||
|
||
from json import loads | ||
from unittest import mock | ||
|
||
import mock | ||
from preggy import expect | ||
from redis import Redis | ||
from tornado.testing import gen_test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,15 +8,16 @@ | |
# http://www.opensource.org/licenses/mit-license | ||
# Copyright (c) 2011 globo.com [email protected] | ||
|
||
from mock import patch | ||
from unittest.mock import patch | ||
|
||
from libthumbor import CryptoURL | ||
from preggy import expect | ||
from tornado.testing import gen_test | ||
|
||
from tests.handlers.test_base_handler import BaseImagingTestCase | ||
from thumbor.config import Config | ||
from thumbor.context import RequestParameters, ServerParameters | ||
from thumbor.importer import Importer | ||
from tests.handlers.test_base_handler import BaseImagingTestCase | ||
|
||
# pylint: disable=broad-except,abstract-method,attribute-defined-outside-init,line-too-long,too-many-public-methods | ||
# pylint: disable=too-many-lines | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,17 +9,17 @@ | |
# Copyright (c) 2011 globo.com [email protected] | ||
|
||
from shutil import which | ||
from unittest.mock import patch | ||
from urllib.parse import quote | ||
|
||
from libthumbor import CryptoURL | ||
from preggy import expect | ||
from tornado.testing import gen_test | ||
from mock import patch | ||
from libthumbor import CryptoURL | ||
|
||
from tests.handlers.test_base_handler import BaseImagingTestCase | ||
from thumbor.config import Config | ||
from thumbor.context import Context, RequestParameters, ServerParameters | ||
from thumbor.importer import Importer | ||
from tests.handlers.test_base_handler import BaseImagingTestCase | ||
|
||
# pylint: disable=broad-except,abstract-method,attribute-defined-outside-init,line-too-long,too-many-public-methods | ||
# pylint: disable=too-many-lines | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,16 +8,17 @@ | |
# http://www.opensource.org/licenses/mit-license | ||
# Copyright (c) 2011 globo.com [email protected] | ||
|
||
from unittest.mock import patch | ||
|
||
import pytest | ||
from mock import patch | ||
from preggy import expect | ||
from tornado.testing import gen_test | ||
|
||
from tests.handlers.test_base_handler import BaseImagingTestCase | ||
from thumbor.config import Config | ||
from thumbor.context import Context, ServerParameters | ||
from thumbor.engines.pil import Engine | ||
from thumbor.importer import Importer | ||
from tests.handlers.test_base_handler import BaseImagingTestCase | ||
|
||
# pylint: disable=broad-except,abstract-method,attribute-defined-outside-init,line-too-long,too-many-public-methods | ||
# pylint: disable=too-many-lines | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,8 @@ | |
# http://www.opensource.org/licenses/mit-license | ||
# Copyright (c) 2011 globo.com [email protected] | ||
|
||
from mock import Mock | ||
from unittest.mock import Mock | ||
|
||
from preggy import expect | ||
|
||
from tests.base import TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,8 @@ | |
# Copyright (c) 2011 globo.com [email protected] | ||
|
||
from os.path import abspath, dirname, join | ||
from unittest.mock import patch | ||
|
||
from mock import patch | ||
from preggy import expect | ||
from tornado.testing import gen_test | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,13 +8,13 @@ | |
# http://www.opensource.org/licenses/mit-license | ||
# Copyright (c) 2011 globo.com [email protected] | ||
|
||
import mock | ||
from unittest import mock | ||
|
||
from preggy import expect | ||
|
||
import thumbor.metrics | ||
from thumbor.importer import Importer | ||
|
||
from tests.base import TestCase | ||
from thumbor.importer import Importer | ||
|
||
|
||
class DefaultMetricsTestCase(TestCase): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,7 @@ | |
# Copyright (c) 2011 globo.com [email protected] | ||
|
||
from shutil import which | ||
from unittest import TestCase | ||
|
||
import mock | ||
from unittest import TestCase, mock | ||
|
||
from thumbor.config import Config | ||
from thumbor.context import Context, RequestParameters | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,7 @@ | |
# http://www.opensource.org/licenses/mit-license | ||
# Copyright (c) 2011 globo.com [email protected] | ||
|
||
from unittest import TestCase | ||
|
||
import mock | ||
from unittest import TestCase, mock | ||
|
||
from thumbor.config import Config | ||
from thumbor.context import Context, RequestParameters | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,12 +9,11 @@ | |
# Copyright (c) 2011 globo.com [email protected] | ||
|
||
from os.path import expanduser | ||
from unittest import TestCase | ||
import mock | ||
from unittest import TestCase, mock | ||
|
||
from preggy import expect | ||
|
||
from thumbor.config import generate_config, format_value, Config | ||
from thumbor.config import Config, format_value, generate_config | ||
|
||
|
||
class ConfigTestCase(TestCase): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,8 @@ | |
# http://www.opensource.org/licenses/mit-license | ||
# Copyright (c) 2011 globo.com [email protected] | ||
|
||
from unittest import TestCase | ||
from unittest import TestCase, mock | ||
|
||
import mock | ||
from preggy import expect | ||
|
||
from thumbor.config import Config | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,8 @@ | |
# http://www.opensource.org/licenses/mit-license | ||
# Copyright (c) 2011 globo.com [email protected] | ||
|
||
from unittest import TestCase | ||
from unittest import TestCase, mock | ||
|
||
import mock | ||
from preggy import expect | ||
|
||
import thumbor.server | ||
|
Oops, something went wrong.