
* move benchmarks and add some more * change key and paths * parametrize tests * more specific ignore * rename fixture * remove previous file * add tests for _compile_stateful_components
19 lines
424 B
Python
19 lines
424 B
Python
import pytest
|
|
|
|
from reflex.compiler.compiler import _compile_page, _compile_stateful_components
|
|
|
|
|
|
@pytest.mark.benchmark
|
|
def test_compile_page(evaluated_page):
|
|
_compile_page(evaluated_page, None)
|
|
|
|
|
|
@pytest.mark.benchmark
|
|
def test_compile_stateful(evaluated_page):
|
|
_compile_stateful_components([evaluated_page])
|
|
|
|
|
|
@pytest.mark.benchmark
|
|
def test_get_all_imports(evaluated_page):
|
|
evaluated_page._get_all_imports()
|