Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Cloud:CI
python-python-jenkins
python-python-jenkins-no-mock.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-python-jenkins-no-mock.patch of Package python-python-jenkins
--- test-requirements.txt | 2 -- tests/base.py | 7 ++----- tests/helper.py | 2 +- tests/jobs/test_assert.py | 2 +- tests/jobs/test_build.py | 2 +- tests/jobs/test_config.py | 2 +- tests/jobs/test_copy.py | 2 +- tests/jobs/test_count.py | 2 +- tests/jobs/test_create.py | 2 +- tests/jobs/test_debug.py | 2 +- tests/jobs/test_delete.py | 2 +- tests/jobs/test_disable.py | 2 +- tests/jobs/test_enable.py | 2 +- tests/jobs/test_get.py | 2 +- tests/jobs/test_getall.py | 2 +- tests/jobs/test_info.py | 2 +- tests/jobs/test_name.py | 2 +- tests/jobs/test_reconfig.py | 2 +- tests/jobs/test_rename.py | 2 +- tests/jobs/test_set_next_build_number.py | 2 +- tests/test_build.py | 2 +- tests/test_check_jenkinsfile_syntax.py | 2 +- tests/test_credential.py | 2 +- tests/test_info.py | 2 +- tests/test_jenkins.py | 2 +- tests/test_job_folder.py | 2 +- tests/test_node.py | 2 +- tests/test_plugins.py | 2 +- tests/test_promotion.py | 2 +- tests/test_queue.py | 2 +- tests/test_quiet_down.py | 2 +- tests/test_script.py | 2 +- tests/test_version.py | 2 +- tests/test_view.py | 2 +- tests/test_whoami.py | 2 +- 35 files changed, 35 insertions(+), 40 deletions(-) Index: python-jenkins-1.8.0/test-requirements.txt =================================================================== --- python-jenkins-1.8.0.orig/test-requirements.txt +++ python-jenkins-1.8.0/test-requirements.txt @@ -1,8 +1,6 @@ cmd2!=0.8.3,<0.9.0;python_version<'3.0' # MIT cmd2!=0.8.3;python_version>='3.0' # MIT coverage>=3.6 -mock -unittest2 python-subunit requests-mock>=1.4.0 requests-kerberos<=0.12.0;python_version<'3.6' Index: python-jenkins-1.8.0/tests/base.py =================================================================== --- python-jenkins-1.8.0.orig/tests/base.py +++ python-jenkins-1.8.0/tests/base.py @@ -1,14 +1,11 @@ import sys -import mock +from unittest import mock +import unittest from testscenarios import TestWithScenarios import jenkins -if sys.version_info < (2, 7): - import unittest2 as unittest -else: - import unittest class JenkinsTestBase(TestWithScenarios, unittest.TestCase): Index: python-jenkins-1.8.0/tests/helper.py =================================================================== --- python-jenkins-1.8.0.orig/tests/helper.py +++ python-jenkins-1.8.0/tests/helper.py @@ -4,7 +4,7 @@ from multiprocessing import Process from multiprocessing import Queue import traceback -from mock import Mock +from unittest.mock import Mock import requests from six.moves import socketserver Index: python-jenkins-1.8.0/tests/jobs/test_assert.py =================================================================== --- python-jenkins-1.8.0.orig/tests/jobs/test_assert.py +++ python-jenkins-1.8.0/tests/jobs/test_assert.py @@ -1,5 +1,5 @@ import json -from mock import patch +from unittest.mock import patch import jenkins from tests.jobs.base import JenkinsJobsTestBase Index: python-jenkins-1.8.0/tests/jobs/test_build.py =================================================================== --- python-jenkins-1.8.0.orig/tests/jobs/test_build.py +++ python-jenkins-1.8.0/tests/jobs/test_build.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from mock import patch +from unittest.mock import patch import jenkins from six.moves.urllib.parse import quote Index: python-jenkins-1.8.0/tests/jobs/test_config.py =================================================================== --- python-jenkins-1.8.0.orig/tests/jobs/test_config.py +++ python-jenkins-1.8.0/tests/jobs/test_config.py @@ -1,4 +1,4 @@ -from mock import patch +from unittest.mock import patch import jenkins from tests.jobs.base import JenkinsJobsTestBase Index: python-jenkins-1.8.0/tests/jobs/test_copy.py =================================================================== --- python-jenkins-1.8.0.orig/tests/jobs/test_copy.py +++ python-jenkins-1.8.0/tests/jobs/test_copy.py @@ -1,5 +1,5 @@ import json -from mock import patch +from unittest.mock import patch import jenkins from tests.jobs.base import JenkinsJobsTestBase Index: python-jenkins-1.8.0/tests/jobs/test_count.py =================================================================== --- python-jenkins-1.8.0.orig/tests/jobs/test_count.py +++ python-jenkins-1.8.0/tests/jobs/test_count.py @@ -1,5 +1,5 @@ import json -from mock import patch +from unittest.mock import patch import jenkins from tests.jobs.base import JenkinsJobsTestBase Index: python-jenkins-1.8.0/tests/jobs/test_create.py =================================================================== --- python-jenkins-1.8.0.orig/tests/jobs/test_create.py +++ python-jenkins-1.8.0/tests/jobs/test_create.py @@ -1,5 +1,5 @@ import json -from mock import patch +from unittest.mock import patch import jenkins from tests.jobs.base import JenkinsJobsTestBase Index: python-jenkins-1.8.0/tests/jobs/test_debug.py =================================================================== --- python-jenkins-1.8.0.orig/tests/jobs/test_debug.py +++ python-jenkins-1.8.0/tests/jobs/test_debug.py @@ -1,5 +1,5 @@ import json -from mock import patch +from unittest.mock import patch import jenkins from tests.jobs.base import JenkinsJobsTestBase Index: python-jenkins-1.8.0/tests/jobs/test_delete.py =================================================================== --- python-jenkins-1.8.0.orig/tests/jobs/test_delete.py +++ python-jenkins-1.8.0/tests/jobs/test_delete.py @@ -1,5 +1,5 @@ import json -from mock import patch +from unittest.mock import patch import jenkins from tests.jobs.base import JenkinsJobsTestBase Index: python-jenkins-1.8.0/tests/jobs/test_disable.py =================================================================== --- python-jenkins-1.8.0.orig/tests/jobs/test_disable.py +++ python-jenkins-1.8.0/tests/jobs/test_disable.py @@ -1,5 +1,5 @@ import json -from mock import patch +from unittest.mock import patch import jenkins from tests.jobs.base import JenkinsJobsTestBase Index: python-jenkins-1.8.0/tests/jobs/test_enable.py =================================================================== --- python-jenkins-1.8.0.orig/tests/jobs/test_enable.py +++ python-jenkins-1.8.0/tests/jobs/test_enable.py @@ -1,5 +1,5 @@ import json -from mock import patch +from unittest.mock import patch import jenkins from tests.jobs.base import JenkinsJobsTestBase Index: python-jenkins-1.8.0/tests/jobs/test_get.py =================================================================== --- python-jenkins-1.8.0.orig/tests/jobs/test_get.py +++ python-jenkins-1.8.0/tests/jobs/test_get.py @@ -1,5 +1,5 @@ import json -from mock import patch +from unittest.mock import patch import jenkins from tests.helper import build_response_mock Index: python-jenkins-1.8.0/tests/jobs/test_getall.py =================================================================== --- python-jenkins-1.8.0.orig/tests/jobs/test_getall.py +++ python-jenkins-1.8.0/tests/jobs/test_getall.py @@ -1,5 +1,5 @@ import json -from mock import patch +from unittest.mock import patch import jenkins from tests.jobs.base import JenkinsGetJobsTestBase Index: python-jenkins-1.8.0/tests/jobs/test_info.py =================================================================== --- python-jenkins-1.8.0.orig/tests/jobs/test_info.py +++ python-jenkins-1.8.0/tests/jobs/test_info.py @@ -1,5 +1,5 @@ import json -from mock import patch +from unittest.mock import patch import jenkins from tests.helper import build_response_mock Index: python-jenkins-1.8.0/tests/jobs/test_name.py =================================================================== --- python-jenkins-1.8.0.orig/tests/jobs/test_name.py +++ python-jenkins-1.8.0/tests/jobs/test_name.py @@ -1,5 +1,5 @@ import json -from mock import patch +from unittest.mock import patch import jenkins from tests.jobs.base import JenkinsJobsTestBase Index: python-jenkins-1.8.0/tests/jobs/test_reconfig.py =================================================================== --- python-jenkins-1.8.0.orig/tests/jobs/test_reconfig.py +++ python-jenkins-1.8.0/tests/jobs/test_reconfig.py @@ -1,5 +1,5 @@ import json -from mock import patch +from unittest.mock import patch import jenkins from tests.jobs.base import JenkinsJobsTestBase Index: python-jenkins-1.8.0/tests/jobs/test_rename.py =================================================================== --- python-jenkins-1.8.0.orig/tests/jobs/test_rename.py +++ python-jenkins-1.8.0/tests/jobs/test_rename.py @@ -1,5 +1,5 @@ import json -from mock import patch +from unittest.mock import patch import jenkins from tests.jobs.base import JenkinsJobsTestBase Index: python-jenkins-1.8.0/tests/jobs/test_set_next_build_number.py =================================================================== --- python-jenkins-1.8.0.orig/tests/jobs/test_set_next_build_number.py +++ python-jenkins-1.8.0/tests/jobs/test_set_next_build_number.py @@ -1,4 +1,4 @@ -from mock import patch +from unittest.mock import patch import jenkins from tests.jobs.base import JenkinsJobsTestBase Index: python-jenkins-1.8.0/tests/test_build.py =================================================================== --- python-jenkins-1.8.0.orig/tests/test_build.py +++ python-jenkins-1.8.0/tests/test_build.py @@ -1,7 +1,7 @@ import json import collections -from mock import patch +from unittest.mock import patch import jenkins from tests.base import JenkinsTestBase Index: python-jenkins-1.8.0/tests/test_check_jenkinsfile_syntax.py =================================================================== --- python-jenkins-1.8.0.orig/tests/test_check_jenkinsfile_syntax.py +++ python-jenkins-1.8.0/tests/test_check_jenkinsfile_syntax.py @@ -1,4 +1,4 @@ -from mock import patch +from unittest.mock import patch from tests.base import JenkinsTestBase from tests.helper import build_response_mock Index: python-jenkins-1.8.0/tests/test_credential.py =================================================================== --- python-jenkins-1.8.0.orig/tests/test_credential.py +++ python-jenkins-1.8.0/tests/test_credential.py @@ -1,5 +1,5 @@ import json -from mock import patch +from unittest.mock import patch import jenkins from tests.base import JenkinsTestBase Index: python-jenkins-1.8.0/tests/test_info.py =================================================================== --- python-jenkins-1.8.0.orig/tests/test_info.py +++ python-jenkins-1.8.0/tests/test_info.py @@ -1,5 +1,5 @@ import json -from mock import patch +from unittest.mock import patch import jenkins from tests.base import JenkinsTestBase Index: python-jenkins-1.8.0/tests/test_jenkins.py =================================================================== --- python-jenkins-1.8.0.orig/tests/test_jenkins.py +++ python-jenkins-1.8.0/tests/test_jenkins.py @@ -1,7 +1,7 @@ import json import socket -from mock import patch +from unittest.mock import patch import six from tests.base import JenkinsTestBase Index: python-jenkins-1.8.0/tests/test_job_folder.py =================================================================== --- python-jenkins-1.8.0.orig/tests/test_job_folder.py +++ python-jenkins-1.8.0/tests/test_job_folder.py @@ -1,4 +1,4 @@ -from mock import patch +from unittest.mock import patch import jenkins from tests.base import JenkinsTestBase Index: python-jenkins-1.8.0/tests/test_node.py =================================================================== --- python-jenkins-1.8.0.orig/tests/test_node.py +++ python-jenkins-1.8.0/tests/test_node.py @@ -1,5 +1,5 @@ import json -from mock import patch +from unittest.mock import patch import jenkins import requests_mock Index: python-jenkins-1.8.0/tests/test_plugins.py =================================================================== --- python-jenkins-1.8.0.orig/tests/test_plugins.py +++ python-jenkins-1.8.0/tests/test_plugins.py @@ -32,7 +32,7 @@ import json -from mock import patch +from unittest.mock import patch from testscenarios.scenarios import multiply_scenarios import jenkins Index: python-jenkins-1.8.0/tests/test_promotion.py =================================================================== --- python-jenkins-1.8.0.orig/tests/test_promotion.py +++ python-jenkins-1.8.0/tests/test_promotion.py @@ -1,5 +1,5 @@ import json -from mock import patch +from unittest.mock import patch import jenkins from tests.base import JenkinsTestBase Index: python-jenkins-1.8.0/tests/test_queue.py =================================================================== --- python-jenkins-1.8.0.orig/tests/test_queue.py +++ python-jenkins-1.8.0/tests/test_queue.py @@ -1,5 +1,5 @@ import json -from mock import patch +from unittest.mock import patch import jenkins from tests.base import JenkinsTestBase Index: python-jenkins-1.8.0/tests/test_quiet_down.py =================================================================== --- python-jenkins-1.8.0.orig/tests/test_quiet_down.py +++ python-jenkins-1.8.0/tests/test_quiet_down.py @@ -1,5 +1,5 @@ import json -from mock import patch +from unittest.mock import patch import jenkins from tests.base import JenkinsTestBase Index: python-jenkins-1.8.0/tests/test_script.py =================================================================== --- python-jenkins-1.8.0.orig/tests/test_script.py +++ python-jenkins-1.8.0/tests/test_script.py @@ -1,4 +1,4 @@ -from mock import patch +from unittest.mock import patch import jenkins from tests.base import JenkinsTestBase Index: python-jenkins-1.8.0/tests/test_version.py =================================================================== --- python-jenkins-1.8.0.orig/tests/test_version.py +++ python-jenkins-1.8.0/tests/test_version.py @@ -1,4 +1,4 @@ -from mock import patch +from unittest.mock import patch import jenkins from tests.base import JenkinsTestBase Index: python-jenkins-1.8.0/tests/test_view.py =================================================================== --- python-jenkins-1.8.0.orig/tests/test_view.py +++ python-jenkins-1.8.0/tests/test_view.py @@ -1,5 +1,5 @@ import json -from mock import patch +from unittest.mock import patch import jenkins from tests.base import JenkinsTestBase Index: python-jenkins-1.8.0/tests/test_whoami.py =================================================================== --- python-jenkins-1.8.0.orig/tests/test_whoami.py +++ python-jenkins-1.8.0/tests/test_whoami.py @@ -1,5 +1,5 @@ import json -from mock import patch +from unittest.mock import patch import jenkins from tests.base import JenkinsTestBase
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor