eksctl: 0.199.0 -> 0.200.0 (#372289)
[NixPkgs.git] / pkgs / development / python-modules / limits / remove-fixed-start-from-async-tests.patch
blob19dc22173a668d57aff128295d0f3c1b69a99422
1 diff --git a/tests/aio/test_storage.py b/tests/aio/test_storage.py
2 index 1040d18..7015278 100644
3 --- a/tests/aio/test_storage.py
4 +++ b/tests/aio/test_storage.py
5 @@ -17,7 +17,6 @@ from limits.aio.storage import (
6 from limits.aio.strategies import MovingWindowRateLimiter
7 from limits.errors import StorageError
8 from limits.storage import storage_from_string
9 -from tests.utils import fixed_start
12 @pytest.mark.asyncio
13 @@ -197,7 +196,6 @@ class TestConcreteStorages:
14 async def test_storage_string(self, uri, args, expected_instance, fixture):
15 assert isinstance(storage_from_string(uri, **args), expected_instance)
17 - @fixed_start
18 async def test_expiry_incr(self, uri, args, expected_instance, fixture):
19 storage = storage_from_string(uri, **args)
20 limit = RateLimitItemPerSecond(1)
21 @@ -205,7 +203,6 @@ class TestConcreteStorages:
22 time.sleep(1.1)
23 assert await storage.get(limit.key_for()) == 0
25 - @fixed_start
26 async def test_expiry_acquire_entry(self, uri, args, expected_instance, fixture):
27 if not issubclass(expected_instance, MovingWindowSupport):
28 pytest.skip("%s does not support acquire entry" % expected_instance)
29 diff --git a/tests/aio/test_strategy.py b/tests/aio/test_strategy.py
30 index b21f808..efa3b95 100644
31 --- a/tests/aio/test_strategy.py
32 +++ b/tests/aio/test_strategy.py
33 @@ -18,14 +18,12 @@ from tests.utils import (
34 async_all_storage,
35 async_moving_window_storage,
36 async_window,
37 - fixed_start,
41 @pytest.mark.asyncio
42 class TestAsyncWindow:
43 @async_all_storage
44 - @fixed_start
45 async def test_fixed_window(self, uri, args, fixture):
46 storage = storage_from_string(uri, **args)
47 limiter = FixedWindowRateLimiter(storage)
48 @@ -37,7 +35,6 @@ class TestAsyncWindow:
49 assert (await limiter.get_window_stats(limit)).reset_time == start + 2
51 @async_all_storage
52 - @fixed_start
53 async def test_fixed_window_empty_stats(self, uri, args, fixture):
54 storage = storage_from_string(uri, **args)
55 limiter = FixedWindowRateLimiter(storage)
56 @@ -61,7 +58,6 @@ class TestAsyncWindow:
57 ) == 58
59 @async_all_storage
60 - @fixed_start
61 async def test_fixed_window_multiple_cost(self, uri, args, fixture):
62 storage = storage_from_string(uri, **args)
63 limiter = FixedWindowRateLimiter(storage)
64 @@ -73,7 +69,6 @@ class TestAsyncWindow:
65 assert not await limiter.hit(limit, "k2", cost=6)
67 @async_all_storage
68 - @fixed_start
69 async def test_fixed_window_with_elastic_expiry(self, uri, args, fixture):
70 storage = storage_from_string(uri, **args)
71 limiter = FixedWindowElasticExpiryRateLimiter(storage)
72 @@ -90,7 +85,6 @@ class TestAsyncWindow:
73 assert (await limiter.get_window_stats(limit)).reset_time == end + 2
75 @async_all_storage
76 - @fixed_start
77 async def test_fixed_window_with_elastic_expiry_multiple_cost(
78 self, uri, args, fixture
80 @@ -179,7 +173,6 @@ class TestAsyncWindow:
81 MovingWindowRateLimiter(storage)
83 @async_all_storage
84 - @fixed_start
85 @pytest.mark.flaky
86 async def test_test_fixed_window(self, uri, args, fixture):
87 storage = storage_from_string(uri, **args)