cleanup imports
This commit is contained in:
parent
85be850636
commit
8af784506a
@ -43,6 +43,7 @@ import reflex.utils.exec
|
|||||||
import reflex.utils.format
|
import reflex.utils.format
|
||||||
import reflex.utils.prerequisites
|
import reflex.utils.prerequisites
|
||||||
import reflex.utils.processes
|
import reflex.utils.processes
|
||||||
|
from reflex.config import environment
|
||||||
from reflex.state import (
|
from reflex.state import (
|
||||||
BaseState,
|
BaseState,
|
||||||
StateManager,
|
StateManager,
|
||||||
@ -250,7 +251,6 @@ class AppHarness:
|
|||||||
|
|
||||||
def _initialize_app(self):
|
def _initialize_app(self):
|
||||||
# disable telemetry reporting for tests
|
# disable telemetry reporting for tests
|
||||||
from reflex.config import environment
|
|
||||||
|
|
||||||
environment.TELEMETRY_ENABLED.set(False)
|
environment.TELEMETRY_ENABLED.set(False)
|
||||||
self.app_path.mkdir(parents=True, exist_ok=True)
|
self.app_path.mkdir(parents=True, exist_ok=True)
|
||||||
@ -944,8 +944,6 @@ class AppHarnessProd(AppHarness):
|
|||||||
raise RuntimeError("Frontend did not start")
|
raise RuntimeError("Frontend did not start")
|
||||||
|
|
||||||
def _start_backend(self):
|
def _start_backend(self):
|
||||||
from reflex.config import environment
|
|
||||||
|
|
||||||
if self.app_instance is None:
|
if self.app_instance is None:
|
||||||
raise RuntimeError("App was not initialized.")
|
raise RuntimeError("App was not initialized.")
|
||||||
environment.REFLEX_SKIP_COMPILE.set(True)
|
environment.REFLEX_SKIP_COMPILE.set(True)
|
||||||
|
Loading…
Reference in New Issue
Block a user