@@ -94,12 +94,12 @@ def _delta_changeset(key: str, version: int, on: bool) -> ChangeSet:
9494
9595
9696@pytest .mark .asyncio
97- async def test_apply_async_full_transfer_persists_via_init ():
97+ async def test_apply_full_transfer_persists_via_init ():
9898 async_store = FakeAsyncFeatureStore ()
9999 store = AsyncStore (Listeners (), Listeners ())
100100 store .with_async_persistence (async_store , True , None )
101101
102- await store .apply_async (_full_changeset ("flag-a" , 1 , True ), True )
102+ await store .apply (_full_changeset ("flag-a" , 1 , True ), True )
103103
104104 # After a full transfer the memory store is authoritative and serves reads
105105 assert store .get_active_store () is store ._memory_store
@@ -113,30 +113,30 @@ async def test_apply_async_full_transfer_persists_via_init():
113113
114114
115115@pytest .mark .asyncio
116- async def test_apply_async_delta_persists_via_upsert ():
116+ async def test_apply_delta_persists_via_upsert ():
117117 async_store = FakeAsyncFeatureStore ()
118118 store = AsyncStore (Listeners (), Listeners ())
119119 store .with_async_persistence (async_store , True , None )
120120
121- await store .apply_async (_full_changeset ("flag-a" , 1 , True ), True )
121+ await store .apply (_full_changeset ("flag-a" , 1 , True ), True )
122122 async_store .init_called_count = 0
123123 async_store .upsert_calls = []
124124
125- await store .apply_async (_delta_changeset ("flag-a" , 2 , False ), True )
125+ await store .apply (_delta_changeset ("flag-a" , 2 , False ), True )
126126
127127 assert any (call [1 ] == "flag-a" and call [2 ] == 2 for call in async_store .upsert_calls )
128128 assert async_store .snapshot ()[FEATURES ]["flag-a" ]["on" ] is False
129129
130130
131131@pytest .mark .asyncio
132- async def test_apply_async_read_only_does_not_persist ():
132+ async def test_apply_read_only_does_not_persist ():
133133 async_store = FakeAsyncFeatureStore ()
134134 store = AsyncStore (Listeners (), Listeners ())
135135 # writable=False -> READ_ONLY: never write to the store
136136 store .with_async_persistence (async_store , False , None )
137137
138- await store .apply_async (_full_changeset ("flag-a" , 1 , True ), True )
139- await store .apply_async (_delta_changeset ("flag-a" , 2 , False ), True )
138+ await store .apply (_full_changeset ("flag-a" , 1 , True ), True )
139+ await store .apply (_delta_changeset ("flag-a" , 2 , False ), True )
140140
141141 assert async_store .init_called_count == 0
142142 assert async_store .upsert_calls == []
@@ -145,7 +145,7 @@ async def test_apply_async_read_only_does_not_persist():
145145
146146
147147@pytest .mark .asyncio
148- async def test_apply_async_fires_change_set_listeners ():
148+ async def test_apply_fires_change_set_listeners ():
149149 async_store = FakeAsyncFeatureStore ()
150150 received : List [ChangeSet ] = []
151151 change_set_listeners = Listeners ()
@@ -155,29 +155,29 @@ async def test_apply_async_fires_change_set_listeners():
155155 store .with_async_persistence (async_store , True , None )
156156
157157 cs = _full_changeset ("flag-a" , 1 , True )
158- await store .apply_async (cs , True )
158+ await store .apply (cs , True )
159159
160160 assert received == [cs ]
161161
162162
163163@pytest .mark .asyncio
164- async def test_commit_async_writes_memory_to_store ():
164+ async def test_commit_writes_memory_to_store ():
165165 async_store = FakeAsyncFeatureStore ()
166166 store = AsyncStore (Listeners (), Listeners ())
167167 store .with_async_persistence (async_store , True , None )
168168
169169 # Populate memory without persisting yet (read-only apply through memory)
170- await store .apply_async (_full_changeset ("flag-a" , 1 , True ), True )
170+ await store .apply (_full_changeset ("flag-a" , 1 , True ), True )
171171 async_store .init_called_count = 0
172172
173- err = await store .commit_async ()
173+ err = await store .commit ()
174174 assert err is None
175175 assert async_store .init_called_count == 1
176176 assert "flag-a" in async_store .snapshot ()[FEATURES ]
177177
178178
179179@pytest .mark .asyncio
180- async def test_commit_async_returns_error_on_failure ():
180+ async def test_commit_returns_error_on_failure ():
181181 class FailingStore (FakeAsyncFeatureStore ):
182182 async def init (self , all_data ):
183183 raise RuntimeError ("boom" )
@@ -186,22 +186,22 @@ async def init(self, all_data):
186186 store = AsyncStore (Listeners (), Listeners ())
187187 # Read-only so the deferred persist is skipped and memory is populated first.
188188 store .with_async_persistence (async_store , False , None )
189- await store .apply_async (_full_changeset ("flag-a" , 1 , True ), True )
189+ await store .apply (_full_changeset ("flag-a" , 1 , True ), True )
190190
191191 # Now make it writable and commit, which triggers the failing init.
192192 store ._persistent_store_writable = True
193- err = await store .commit_async ()
193+ err = await store .commit ()
194194 assert isinstance (err , RuntimeError )
195195 assert str (err ) == "boom"
196196
197197
198198@pytest .mark .asyncio
199- async def test_close_async_closes_async_store ():
199+ async def test_close_closes_async_store ():
200200 async_store = FakeAsyncFeatureStore ()
201201 store = AsyncStore (Listeners (), Listeners ())
202202 store .with_async_persistence (async_store , True , None )
203203
204- err = await store .close_async ()
204+ err = await store .close ()
205205 assert err is None
206206 assert async_store .closed is True
207207
0 commit comments