Test fixes and improvements (#9733)

* Test fixes and improvements (for debugging)

* Remove set log level

* Remove info log from CardRepository

Co-authored-by: Hugh Kaznowski <raat_streetcam@simplelogin.com>
This commit is contained in:
Przemyslaw Hugh Kaznowski 2022-11-06 13:47:27 +00:00 committed by GitHub
parent 63c1325f37
commit dc3d867584
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View file

@ -28,7 +28,7 @@ public final class Bushwhack extends CardImpl {
));
// * Target creature you control fights target creature you don't control.
this.getSpellAbility().addMode(new Mode(new FightTargetsEffect())
this.getSpellAbility().addMode(new Mode(new FightTargetsEffect(true))
.addTarget(new TargetControlledCreaturePermanent())
.addTarget(new TargetPermanent(StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL)));
}

View file

@ -2,7 +2,7 @@ package mage.cards.t;
import mage.MageInt;
import mage.abilities.common.DealsDamageToAPlayerAllTriggeredAbility;
import mage.abilities.costs.mana.GenericManaCost;;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.abilities.keyword.WardAbility;

View file

@ -22,13 +22,13 @@ public class TxtDeckImporterTest {
for (String c : cards) {
card = CardRepository.instance.findPreferredCoreExpansionCard(c);
assert card != null;
Assert.assertNotNull(String.format("Card %s was null", c), card);
deck.getCards().add(new DeckCardInfo(card.getName(), card.getCardNumber(), card.getSetCode()));
}
for (String s : sideboard) {
card = CardRepository.instance.findPreferredCoreExpansionCard(s);
assert card != null;
Assert.assertNotNull(String.format("Card %s was null", s), card);
deck.getSideboard().add(new DeckCardInfo(card.getName(), card.getCardNumber(), card.getSetCode()));
}

View file

@ -275,7 +275,7 @@ public class VerifyCardDataTest {
printMessages(outputMessages);
if (failed > 0) {
Assert.fail("found " + failed + " errors in cards verify (see errors list above)");
Assert.fail(String.format("found %d errors in %d cards verify (see errors list above)", failed, CardScanner.getAllCards().size()));
}
}