Skip to content

Commit

Permalink
add benchmark test for gn_meta
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesfize authored and VincentCauchois committed Mar 26, 2024
1 parent 76ae25e commit f551325
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions backend/geonature/tests/benchmarks/test_benchmark_gn_meta.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import logging
import pytest
from geonature.tests.benchmarks import *
from geonature.tests.test_pr_occhab import stations

from .benchmark_generator import BenchmarkTest, CLater

logging.basicConfig()
logger = logging.getLogger("logger-name")
logger.setLevel(logging.DEBUG)

from .utils import CLIENT_GET, CLIENT_POST


@pytest.mark.benchmark(group="gn_meta")
@pytest.mark.usefixtures("client_class", "temporary_transaction")
class TestBenchmarkGnMeta:

test_list_acquisition_frameworks = BenchmarkTest(
CLIENT_GET,
[CLater("""url_for("gn_meta.get_acquisition_frameworks_list")""")],
dict(user_profile="admin_user", fixtures=[]),
)()
test_list_datasets = BenchmarkTest(
CLIENT_GET,
[CLater("""url_for("gn_meta.get_datasets")""")],
dict(user_profile="admin_user", fixtures=[]),
)()

0 comments on commit f551325

Please sign in to comment.