mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-05-19 04:33:26 +02:00
Added more all wizard necromancy spells and a spell factory.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from unittest import TestCase
|
||||
|
||||
from dungeonsheets.spells import create_spell, Spell
|
||||
|
||||
|
||||
class TestSpells(TestCase):
|
||||
"""Tests for spells and spell-related activities."""
|
||||
|
||||
def test_create_spell(self):
|
||||
NewSpell = create_spell(name="Hello world")
|
||||
self.assertTrue(issubclass(NewSpell, Spell))
|
||||
self.assertEqual(NewSpell.name, 'Hello world')
|
||||
spell = NewSpell()
|
||||
print(spell, spell.__class__, type(spell))
|
||||
Reference in New Issue
Block a user