@@ -20,7 +20,7 @@ class TestAsyncModelGenerator(tb.AsyncModelTestCase):
2020
2121 @tb .must_fail # this test ensures that @typecheck is working
2222 async def test_async_modelgen__smoke_test_01 (self ):
23- from models import default
23+ from models . orm import default
2424
2525 self .assertEqual (reveal_type (default .User .groups ), "this must fail" )
2626
@@ -30,7 +30,7 @@ async def test_async_modelgen__smoke_test_02(self):
3030 raise AssertionError ("this must fail" )
3131
3232 async def test_async_modelgen_01 (self ):
33- from models import default
33+ from models . orm import default
3434
3535 alice = await self .client .query_required_single (
3636 default .User .select (
@@ -50,7 +50,7 @@ async def test_async_modelgen_01(self):
5050 async def test_async_modelgen_02 (self ):
5151 import uuid
5252
53- from models import default
53+ from models . orm import default
5454 # insert an object with a required multi: no link props, one object
5555 # added to the link
5656
@@ -80,7 +80,7 @@ async def test_async_modelgen_02(self):
8080 self .assertEqual (m .nickname , "Hannibal" )
8181
8282 async def test_async_modelgen_save_refetch_modes (self ):
83- from models import default
83+ from models . orm import default
8484
8585 u1 = default .User (name = "Al" )
8686 await self .client .sync (u1 )
@@ -94,7 +94,7 @@ async def test_async_modelgen_save_reload_links_07(self):
9494 # This is a copy if test_async_modelgen_save_reload_links_07
9595 # ensuring the sync() is fully supported in async mode.
9696
97- from models import default
97+ from models . orm import default
9898
9999 # Test backlink invalidation when adding a user to a different group
100100 # Fetch red and blue groups with nested user data and their groups
@@ -153,7 +153,7 @@ async def test_async_modelgen_save_reload_links_07(self):
153153 self .assertEqual ({u .id for u in blue .users }, {alice .id })
154154
155155 async def test_async_modelgen_sync_warning (self ):
156- from models import default
156+ from models . orm import default
157157
158158 g = default .UserGroup (
159159 name = "Pickle Pirates" ,
0 commit comments