mirror of
https://github.com/Oreolek/gamebookformat.git
synced 2024-06-29 05:05:13 +03:00
Removed unused old code.
This commit is contained in:
parent
b3ed663dc3
commit
5bd01ef289
10
sections.py
10
sections.py
|
@ -126,13 +126,3 @@ class Book:
|
||||||
shuffled_from_name[section.name] = section
|
shuffled_from_name[section.name] = section
|
||||||
return ShuffledSections(as_list, from_nr, shuffled_from_name,
|
return ShuffledSections(as_list, from_nr, shuffled_from_name,
|
||||||
self.nr_sections)
|
self.nr_sections)
|
||||||
|
|
||||||
class Item (object):
|
|
||||||
def __init__(self, name):
|
|
||||||
self.name = name
|
|
||||||
|
|
||||||
class Hero (object):
|
|
||||||
"The hero (player character) of a Book."
|
|
||||||
def __init__(self):
|
|
||||||
self.carrying_capacity = 10
|
|
||||||
self.skills = set()
|
|
||||||
|
|
|
@ -35,13 +35,5 @@ class TestBook(TestCase):
|
||||||
self.assertEqual(b.nr_sections, {})
|
self.assertEqual(b.nr_sections, {})
|
||||||
self.assertEqual(b.config['max'], 0)
|
self.assertEqual(b.config['max'], 0)
|
||||||
|
|
||||||
class TestItem(TestCase):
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def test_create(self):
|
|
||||||
i = sections.Item("nn")
|
|
||||||
self.assertEqual(i.name, "nn")
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in a new issue