mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-23 14:13:21 -07:00
Test, MultiServer: reorder imports
Hopefully this fixes the random test failures with pytest-xdist
This commit is contained in:
@@ -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]]
|
||||
|
||||
@@ -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]]
|
||||
|
||||
@@ -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]]" = {}
|
||||
|
||||
Reference in New Issue
Block a user