File tree Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Original file line number Diff line number Diff line change @@ -176,40 +176,6 @@ def test_crud_operations_performance(empty_client):
176
176
response = empty_client .delete (url_for ("messages.delete" , id = message_id ))
177
177
assert response .status_code == 302
178
178
179
-
180
- def test_concurrent_access_simulation (client ):
181
- """Test application under simulated concurrent access."""
182
- results = []
183
- errors = []
184
-
185
- def make_request ():
186
- try :
187
- with client .application .app_context ():
188
- response = client .get (url_for ("messages.index" ))
189
- results .append (response .status_code )
190
- except Exception as e :
191
- errors .append (str (e ))
192
-
193
- threads = []
194
- for _ in range (10 ):
195
- thread = threading .Thread (target = make_request )
196
- threads .append (thread )
197
-
198
- for thread in threads :
199
- thread .start ()
200
-
201
- for thread in threads :
202
- thread .join ()
203
-
204
- assert (
205
- len (results ) >= 5
206
- ), f"Expected at least 5 successful results, got { len (results )} "
207
- assert all (status == 200 for status in results ), f"Some requests failed: { results } "
208
-
209
-
210
- # Security Tests
211
-
212
-
213
179
def test_csrf_protection_compatibility (client ):
214
180
"""Test that CSRF protection works with the framework."""
215
181
message = Message .query .first ()
You can’t perform that action at this time.
0 commit comments