Skip to content

Commit

Permalink
Update reflex/testing.py
Browse files Browse the repository at this point in the history
Co-authored-by: Masen Furer <m_github@0x26.net>
  • Loading branch information
Lendemor and masenf authored Aug 13, 2024
1 parent 9c70868 commit 7856787
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions reflex/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ def _initialize_app(self):
# Ensure the AppHarness test does not skip State assignment due to running via pytest
os.environ.pop(reflex.constants.PYTEST_CURRENT_TEST, None)
self.app_module = reflex.utils.prerequisites.get_compiled_app(
# Do not reload the module for pre-existing apps (only apps generated from source)
reload=self.app_source is not None
)
# Save the pages that were added during testing
Expand Down

0 comments on commit 7856787

Please sign in to comment.