archrelease: copy trunk to community-any
[arch-community.git] / python-cachy / trunk / fix-flexmock_teardown-import.patch
blob1fe39a5269b00602f41fe628a000dddac6f070cb
1 diff -upr cachy-0.3.0.orig/tests/stores/test_dict_store.py cachy-0.3.0/tests/stores/test_dict_store.py
2 --- cachy-0.3.0.orig/tests/stores/test_dict_store.py 2019-08-06 22:18:57.993954200 +0300
3 +++ cachy-0.3.0/tests/stores/test_dict_store.py 2021-12-02 23:24:31.936148644 +0200
4 @@ -1,7 +1,8 @@
5 # -*- coding: utf-8 -*-
7 from unittest import TestCase
8 -from flexmock import flexmock, flexmock_teardown
9 +from flexmock import flexmock
10 +from flexmock._api import flexmock_teardown
12 from cachy.stores import DictStore
14 diff -upr cachy-0.3.0.orig/tests/stores/test_file_store.py cachy-0.3.0/tests/stores/test_file_store.py
15 --- cachy-0.3.0.orig/tests/stores/test_file_store.py 2019-08-06 22:18:57.994094000 +0300
16 +++ cachy-0.3.0/tests/stores/test_file_store.py 2021-12-02 23:24:32.446162662 +0200
17 @@ -7,7 +7,8 @@ import hashlib
18 import shutil
20 from unittest import TestCase
21 -from flexmock import flexmock, flexmock_teardown
22 +from flexmock import flexmock
23 +from flexmock._api import flexmock_teardown
25 from cachy.serializers import JsonSerializer
26 from cachy.stores import FileStore
27 diff -upr cachy-0.3.0.orig/tests/stores/test_redis_store.py cachy-0.3.0/tests/stores/test_redis_store.py
28 --- cachy-0.3.0.orig/tests/stores/test_redis_store.py 2019-08-06 22:57:58.550268400 +0300
29 +++ cachy-0.3.0/tests/stores/test_redis_store.py 2021-12-02 23:24:32.446162662 +0200
30 @@ -4,7 +4,8 @@ import math
32 import redis
33 from unittest import TestCase
34 -from flexmock import flexmock, flexmock_teardown
35 +from flexmock import flexmock
36 +from flexmock._api import flexmock_teardown
37 from fakeredis import FakeServer
38 from fakeredis import FakeStrictRedis
39 from cachy.stores import RedisStore
40 diff -upr cachy-0.3.0.orig/tests/test_cache_manager.py cachy-0.3.0/tests/test_cache_manager.py
41 --- cachy-0.3.0.orig/tests/test_cache_manager.py 2019-08-06 22:18:57.994549300 +0300
42 +++ cachy-0.3.0/tests/test_cache_manager.py 2021-12-02 23:24:32.446162662 +0200
43 @@ -3,7 +3,8 @@
44 import os
45 import tempfile
46 from unittest import TestCase
47 -from flexmock import flexmock, flexmock_teardown
48 +from flexmock import flexmock
49 +from flexmock._api import flexmock_teardown
51 from cachy import CacheManager, Repository
52 from cachy.stores import DictStore, FileStore
53 diff -upr cachy-0.3.0.orig/tests/test_repository.py cachy-0.3.0/tests/test_repository.py
54 --- cachy-0.3.0.orig/tests/test_repository.py 2019-08-06 22:18:57.994738000 +0300
55 +++ cachy-0.3.0/tests/test_repository.py 2021-12-02 23:24:32.446162662 +0200
56 @@ -2,7 +2,8 @@
58 import datetime
59 from unittest import TestCase
60 -from flexmock import flexmock, flexmock_teardown
61 +from flexmock import flexmock
62 +from flexmock._api import flexmock_teardown
64 from cachy import Repository
65 from cachy.contracts.store import Store
66 diff -upr cachy-0.3.0.orig/tests/test_tagged_cache.py cachy-0.3.0/tests/test_tagged_cache.py
67 --- cachy-0.3.0.orig/tests/test_tagged_cache.py 2019-08-06 22:18:57.994858300 +0300
68 +++ cachy-0.3.0/tests/test_tagged_cache.py 2021-12-02 23:24:32.446162662 +0200
69 @@ -7,7 +7,8 @@ from cachy.stores import DictStore, Redi
70 from cachy.tag_set import TagSet
71 from cachy.redis_tagged_cache import RedisTaggedCache
72 from datetime import datetime, timedelta
73 -from flexmock import flexmock, flexmock_teardown
74 +from flexmock import flexmock
75 +from flexmock._api import flexmock_teardown
78 class TaggedCacheTestCase(TestCase):