Skip to content

Commit

Permalink
fix docstring + delete unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesfize committed Feb 22, 2024
1 parent b54a62f commit 3b3c50d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions backend/geonature/tests/benchmarks/benchmark_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class BenchmarkTest:
@pytest.mark.usefixtures("client_class", "temporary_transaction")
class TestBenchie:
pass
TestBenchie.test_print = bench.generate_func_test()
TestBenchie.test_print = bench()
```
If a function or its argument depend on the pytest function context, use the GetLatter class : GetLatter("<python expression">). For example, to use
Expand All @@ -42,8 +42,6 @@ def __init__(self, function, function_args=[], function_kwargs={}) -> None:
----------
function : Callable | GetLatter
function that will be benchmark
name_benchmark : str
name of the benchmark
function_args : Sequence[Any | GetLatter]
args for the function
function_kwargs : Dict[str,Any]
Expand Down Expand Up @@ -73,7 +71,6 @@ def generate_func_test(self):

fixtures = self.function_kwargs.pop("fixtures", [])
user_profile = self.function_kwargs.pop("user_profile", None)
imports = self.function_kwargs.pop("imports", [])

func, args, kwargs = self.function, self.function_args, self.function_kwargs

Expand Down

0 comments on commit 3b3c50d

Please sign in to comment.