Test, MultiServer: reorder imports

Hopefully this fixes the random test failures with pytest-xdist
This commit is contained in:
black-sliver
2026-02-28 19:19:27 +01:00
parent 6f7fce9c73
commit aad980a3a2
3 changed files with 9 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
import typing as t
from weakref import WeakValueDictionary
from NetUtils import GamesPackage, DataPackage
from NetUtils import GamesPackage
GameAndChecksum = tuple[str, str | None]
ItemNameGroups = dict[str, list[str]]

View File

@@ -1,8 +1,9 @@
from NetUtils import GamesPackage
from Utils import restricted_loads
from WebHostLib.models import GameDataPackage
from apmw.multiserver.gamespackage.cache import GamesPackageCache, ItemNameGroups, LocationNameGroups
from WebHostLib.models import GameDataPackage
class DBGamesPackageCache(GamesPackageCache):
_static: dict[str, tuple[GamesPackage, ItemNameGroups, LocationNameGroups]]

View File

@@ -1,12 +1,14 @@
import typing as t
from copy import deepcopy
import Utils
import apmw.webhost.customserver.gamespackage.cache
from NetUtils import GamesPackage
from apmw.webhost.customserver.gamespackage.cache import DBGamesPackageCache
from test.multiserver.test_gamespackage_cache import GamesPackageCacheTest
import Utils
from NetUtils import GamesPackage
import apmw.webhost.customserver.gamespackage.cache
from apmw.webhost.customserver.gamespackage.cache import DBGamesPackageCache
class FakeGameDataPackage:
_rows: "t.ClassVar[dict[str, FakeGameDataPackage]]" = {}