Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

Commit 87bfcbc

Browse files
committed
revert those
1 parent 81fb75d commit 87bfcbc

9 files changed

Lines changed: 9 additions & 50 deletions

tests/conftest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from pathlib import Path
33

44
import pytest
5+
from reflex.testing import AppHarness
56

67
# Add tests directory to Python path for absolute imports
78
sys.path.insert(0, str(Path(__file__).parent))
@@ -22,8 +23,6 @@ def reflex_web_app():
2223
]
2324
)
2425

25-
from reflex.testing import AppHarness
26-
2726
with AppHarness.create(root=app_root) as harness:
2827
yield harness
2928

tests/test_background_events.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
from __future__ import annotations
2-
31
import re
4-
from typing import TYPE_CHECKING
52

63
import pytest
74
from playwright.sync_api import Page, expect
8-
9-
if TYPE_CHECKING:
10-
from reflex.testing import AppHarness
5+
from reflex.testing import AppHarness
116
from utils import get_full_url
127

138

tests/test_chaining_event.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
from __future__ import annotations
2-
31
import re
42
import time
5-
from typing import TYPE_CHECKING
63

74
import pytest
85
from playwright.sync_api import Page, expect
9-
10-
if TYPE_CHECKING:
11-
from reflex.testing import AppHarness
6+
from reflex.testing import AppHarness
127
from utils import get_full_url
138

149

tests/test_computed_vars.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
from __future__ import annotations
2-
31
import re
4-
from typing import TYPE_CHECKING
52

63
import pytest
74
from playwright.sync_api import Page, expect
8-
9-
if TYPE_CHECKING:
10-
from reflex.testing import AppHarness
5+
from reflex.testing import AppHarness
116
from utils import get_full_url
127

138

tests/test_counter.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
"""Test the counter example on the main page."""
22

3-
from __future__ import annotations
4-
53
import re
6-
from typing import TYPE_CHECKING
74

85
import pytest
96
from playwright.sync_api import Page, expect
10-
11-
if TYPE_CHECKING:
12-
from reflex.testing import AppHarness
7+
from reflex.testing import AppHarness
138
from utils import get_full_url
149

1510

tests/test_lambdas.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
from __future__ import annotations
2-
3-
from typing import TYPE_CHECKING
4-
51
import pytest
62
from playwright.sync_api import Page, expect
7-
8-
if TYPE_CHECKING:
9-
from reflex.testing import AppHarness
3+
from reflex.testing import AppHarness
104
from utils import get_full_url
115

126

tests/test_recharts.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
from __future__ import annotations
2-
31
import re
4-
from typing import TYPE_CHECKING
52

63
import pytest
74
from playwright.sync_api import Page, expect
8-
9-
if TYPE_CHECKING:
10-
from reflex.testing import AppHarness
5+
from reflex.testing import AppHarness
116
from utils import get_full_url
127

138

tests/test_server_side_events.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
from __future__ import annotations
2-
31
import re
4-
from typing import TYPE_CHECKING
52

63
import pytest
74
from playwright.sync_api import Page, expect
8-
9-
if TYPE_CHECKING:
10-
from reflex.testing import AppHarness
5+
from reflex.testing import AppHarness
116
from utils import get_full_url
127

138

tests/utils.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
"""Test utilities for reflex-web tests."""
22

3-
from __future__ import annotations
4-
5-
from typing import TYPE_CHECKING
63
from urllib.parse import urljoin
74

8-
if TYPE_CHECKING:
9-
from reflex.testing import AppHarness
5+
from reflex.testing import AppHarness
106

117

128
def get_full_url(app_harness: AppHarness, path: str) -> str:

0 commit comments

Comments
 (0)