1
0

conftest.py 487 B

1234567891011121314151617181920
  1. """Shared conftest for all benchmark tests."""
  2. import pytest
  3. from reflex.testing import AppHarness, AppHarnessProd
  4. @pytest.fixture(
  5. scope="session", params=[AppHarness, AppHarnessProd], ids=["dev", "prod"]
  6. )
  7. def app_harness_env(request):
  8. """Parametrize the AppHarness class to use for the test, either dev or prod.
  9. Args:
  10. request: The pytest fixture request object.
  11. Returns:
  12. The AppHarness class to use for the test.
  13. """
  14. return request.param