Add a test for racial weapon proficencies.

Note: should fail due to misspelling.
This commit is contained in:
Christopher Johnstone
2022-06-24 20:08:43 -04:00
parent 89154bef3b
commit 002d38990d
+6 -1
View File
@@ -9,7 +9,7 @@ from dungeonsheets.character import (
Wizard,
Druid,
)
from dungeonsheets.weapons import Weapon, Shortsword
from dungeonsheets.weapons import Weapon, Shortsword, Battleaxe
from dungeonsheets.magic_items import MagicItem
from dungeonsheets.armor import Armor, LeatherArmor, Shield
@@ -149,6 +149,11 @@ class TestCharacter(TestCase):
char.weapon_proficiencies = tuple()
char.race = race.HighElf()
self.assertTrue(char.is_proficient(sword))
def test_racial_is_proficient(self):
char = Character(classes=["Wizard"], race="Mountain Dwarf")
battleaxe = Battleaxe()
self.assertTrue(char.is_proficient(battleaxe))
def test_proficiencies_text(self):
char = Character()