|
4 | 4 | import pytest |
5 | 5 |
|
6 | 6 | from tests.utils.version import is_v30_or_above |
7 | | -from typesense.client import Client |
8 | | -from typesense.analytics_rules import AnalyticsRules |
9 | | -from typesense.analytics_rule import AnalyticsRule |
10 | | -from typesense.async_api_call import AsyncApiCall |
11 | | -from typesense.async_analytics_rules import AsyncAnalyticsRules |
| 7 | +from typesense.sync.client import Client |
| 8 | +from typesense.sync.analytics_rules import AnalyticsRules |
| 9 | +from typesense.sync.analytics_rule import AnalyticsRule |
| 10 | +from typesense.async_.api_call import AsyncApiCall |
| 11 | +from typesense.async_.analytics_rules import AsyncAnalyticsRules |
12 | 12 | from typesense.types.analytics import AnalyticsRuleCreate |
13 | 13 |
|
14 | 14 |
|
@@ -86,15 +86,15 @@ def test_actual_retrieve( |
86 | 86 |
|
87 | 87 |
|
88 | 88 | def test_rules_init_async(fake_async_api_call: AsyncApiCall) -> None: |
89 | | - from typesense.async_analytics_rules import AsyncAnalyticsRules |
| 89 | + from typesense.async_.analytics_rules import AsyncAnalyticsRules |
90 | 90 |
|
91 | 91 | rules = AsyncAnalyticsRules(fake_async_api_call) |
92 | 92 | assert rules.rules == {} |
93 | 93 |
|
94 | 94 |
|
95 | 95 | def test_rule_getitem_async(fake_async_api_call: AsyncApiCall) -> None: |
96 | | - from typesense.async_analytics_rules import AsyncAnalyticsRules |
97 | | - from typesense.async_analytics_rule import AsyncAnalyticsRule |
| 96 | + from typesense.async_.analytics_rules import AsyncAnalyticsRules |
| 97 | + from typesense.async_.analytics_rule import AsyncAnalyticsRule |
98 | 98 |
|
99 | 99 | rules = AsyncAnalyticsRules(fake_async_api_call) |
100 | 100 | rule = rules["company_analytics_rule"] |
|
0 commit comments