Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/requests_mock/__init__.py: 86%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

7 statements  

1# Licensed under the Apache License, Version 2.0 (the "License"); you may 

2# not use this file except in compliance with the License. You may obtain 

3# a copy of the License at 

4# 

5# https://www.apache.org/licenses/LICENSE-2.0 

6# 

7# Unless required by applicable law or agreed to in writing, software 

8# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 

9# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 

10# License for the specific language governing permissions and limitations 

11# under the License. 

12 

13from requests_mock.adapter import Adapter, ANY 

14from requests_mock.exceptions import MockException, NoMockAddress 

15from requests_mock.mocker import mock, Mocker, MockerCore 

16from requests_mock.mocker import DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT 

17from requests_mock.response import create_response, CookieJar 

18 

19 

20__all__ = ['Adapter', 

21 'ANY', 

22 'create_response', 

23 'CookieJar', 

24 'mock', 

25 'Mocker', 

26 'MockerCore', 

27 'MockException', 

28 'NoMockAddress', 

29 

30 'DELETE', 

31 'GET', 

32 'HEAD', 

33 'OPTIONS', 

34 'PATCH', 

35 'POST', 

36 'PUT', 

37 ]