mirror of
https://github.com/evennia/evennia.git
synced 2026-04-03 06:27:17 +02:00
Updated HTML docs.
This commit is contained in:
parent
5884f92313
commit
81d3dced1b
672 changed files with 113 additions and 178 deletions
|
|
@ -513,7 +513,7 @@ Hm, this is the same values we set before. They are not random. The reason for t
|
|||
|
||||
It's simple enough to run it manually though:
|
||||
|
||||
> self.at_object_creation()
|
||||
> py self.at_object_creation()
|
||||
> py self.get_stats()
|
||||
(5, 4, 8)
|
||||
|
||||
|
|
|
|||
|
|
@ -244,11 +244,11 @@ testing `get_obj_stats`.
|
|||
# mygame/evadventure/tests/test_utils.py
|
||||
|
||||
from evennia.utils import create
|
||||
from evennia.utils.test_resources import BaseEvenniaTest
|
||||
from evennia.utils.test_resources import EvenniaTest
|
||||
|
||||
from ..import utils
|
||||
|
||||
class TestUtils(BaseEvenniaTest):
|
||||
class TestUtils(EvenniaTest):
|
||||
def test_get_obj_stats(self):
|
||||
# make a simple object to test with
|
||||
obj = create.create_object(
|
||||
|
|
@ -275,7 +275,7 @@ Damage roll: |w1d6|n
|
|||
|
||||
```
|
||||
|
||||
What happens here is that we create a new test-class `TestUtils` that inherits from `BaseEvenniaTest`. This inheritance is what makes this a testing class.
|
||||
What happens here is that we create a new test-class `TestUtils` that inherits from `EvenniaTest`. This inheritance is what makes this a testing class.
|
||||
|
||||
|
||||
```{important}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue