Updated HTML docs.

This commit is contained in:
Evennia docbuilder action 2023-12-19 23:50:38 +00:00
parent 5884f92313
commit 81d3dced1b
672 changed files with 113 additions and 178 deletions

View file

@ -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)

View file

@ -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}