mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 08:34:52 -07:00
Have CardDatabase::getPreferredPrintingInfo respect card provider ID overrides (pinned printings)
Took 13 minutes Took 37 seconds Took 10 seconds Took 10 seconds # Commit time for manual adjustment: # Took 30 seconds Took 15 seconds Took 8 minutes Took 21 seconds
This commit is contained in:
parent
dbd1d30ca8
commit
3ccb0cbb23
13 changed files with 97 additions and 38 deletions
|
|
@ -18,10 +18,13 @@ class CardQuery : public ::testing::Test
|
|||
protected:
|
||||
void SetUp() override
|
||||
{
|
||||
cat = CardDatabaseManager::query()->getCardBySimpleName("Cat");
|
||||
notDeadAfterAll = CardDatabaseManager::query()->getCardBySimpleName("Not Dead");
|
||||
truth = CardDatabaseManager::query()->getCardBySimpleName("Truth");
|
||||
doctor = CardDatabaseManager::query()->getCardBySimpleName("Doctor");
|
||||
CardDatabase *db = new CardDatabase(nullptr, QSharedPointer<NoopCardPreferenceProvider>::create());
|
||||
db->loadCardDatabases();
|
||||
|
||||
cat = db->query()->getCardBySimpleName("Cat");
|
||||
notDeadAfterAll = db->query()->getCardBySimpleName("Not Dead");
|
||||
truth = db->query()->getCardBySimpleName("Truth");
|
||||
doctor = db->query()->getCardBySimpleName("Doctor");
|
||||
}
|
||||
// void TearDown() override {}
|
||||
|
||||
|
|
@ -70,7 +73,6 @@ QUERY(Color4, cat, "c!gw", false)
|
|||
int main(int argc, char **argv)
|
||||
{
|
||||
settingsCache = new SettingsCache;
|
||||
CardDatabaseManager::getInstance()->loadCardDatabases();
|
||||
|
||||
::testing::InitGoogleTest(&argc, argv);
|
||||
return RUN_ALL_TESTS();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue