Use a different base testing class in EvAdventure tutorial. Resolve
This commit is contained in:
parent
3727a91c98
commit
255655dffe
1 changed files with 3 additions and 3 deletions
|
|
@ -244,11 +244,11 @@ testing `get_obj_stats`.
|
||||||
# mygame/evadventure/tests/test_utils.py
|
# mygame/evadventure/tests/test_utils.py
|
||||||
|
|
||||||
from evennia.utils import create
|
from evennia.utils import create
|
||||||
from evennia.utils.test_resources import BaseEvenniaTest
|
from evennia.utils.test_resources import EvenniaTest
|
||||||
|
|
||||||
from ..import utils
|
from ..import utils
|
||||||
|
|
||||||
class TestUtils(BaseEvenniaTest):
|
class TestUtils(EvenniaTest):
|
||||||
def test_get_obj_stats(self):
|
def test_get_obj_stats(self):
|
||||||
# make a simple object to test with
|
# make a simple object to test with
|
||||||
obj = create.create_object(
|
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}
|
```{important}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue