From 11e9c0facf89503c0cfdea3c08ef7f78e55bcf2e Mon Sep 17 00:00:00 2001 From: Vincent Sarago Date: Tue, 9 Apr 2024 17:19:11 +0200 Subject: [PATCH] update benchmark names (#652) --- stac_fastapi/api/tests/benchmarks.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/stac_fastapi/api/tests/benchmarks.py b/stac_fastapi/api/tests/benchmarks.py index b1c6321d7..ad73d2424 100644 --- a/stac_fastapi/api/tests/benchmarks.py +++ b/stac_fastapi/api/tests/benchmarks.py @@ -131,7 +131,16 @@ def f(p): ) benchmark.group = "Items With Model validation" if validate else "Items" - benchmark.name = "Items With Model validation" if validate else "Items" + benchmark.name = ( + f"Items With Model validation ({limit})" + if validate + else f"Items Limit: ({limit})" + ) + benchmark.fullname = ( + f"Items With Model validation ({limit})" + if validate + else f"Items Limit: ({limit})" + ) response = benchmark(f, params) assert response.status_code == 200 @@ -151,6 +160,9 @@ def f(): benchmark.group = "Collection With Model validation" if validate else "Collection" benchmark.name = "Collection With Model validation" if validate else "Collection" + benchmark.fullname = ( + "Collection With Model validation" if validate else "Collection" + ) response = benchmark(f) assert response.status_code == 200 @@ -170,6 +182,9 @@ def f(): benchmark.group = "Collections With Model validation" if validate else "Collections" benchmark.name = "Collections With Model validation" if validate else "Collections" + benchmark.fullname = ( + "Collections With Model validation" if validate else "Collections" + ) response = benchmark(f) assert response.status_code == 200