mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-05-18 20:23:27 +02:00
Add a test for racial weapon proficencies.
Note: should fail due to misspelling.
This commit is contained in:
@@ -9,7 +9,7 @@ from dungeonsheets.character import (
|
|||||||
Wizard,
|
Wizard,
|
||||||
Druid,
|
Druid,
|
||||||
)
|
)
|
||||||
from dungeonsheets.weapons import Weapon, Shortsword
|
from dungeonsheets.weapons import Weapon, Shortsword, Battleaxe
|
||||||
from dungeonsheets.magic_items import MagicItem
|
from dungeonsheets.magic_items import MagicItem
|
||||||
from dungeonsheets.armor import Armor, LeatherArmor, Shield
|
from dungeonsheets.armor import Armor, LeatherArmor, Shield
|
||||||
|
|
||||||
@@ -149,6 +149,11 @@ class TestCharacter(TestCase):
|
|||||||
char.weapon_proficiencies = tuple()
|
char.weapon_proficiencies = tuple()
|
||||||
char.race = race.HighElf()
|
char.race = race.HighElf()
|
||||||
self.assertTrue(char.is_proficient(sword))
|
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):
|
def test_proficiencies_text(self):
|
||||||
char = Character()
|
char = Character()
|
||||||
|
|||||||
Reference in New Issue
Block a user