Merge pull request #3037 from 0bviouSquirre1/patch-1

Update to Unit Testing Documentation
This commit is contained in:
Griatch 2022-12-21 16:57:04 +01:00 committed by GitHub
commit 9f9f589dee

View file

@ -43,7 +43,7 @@ forces Evennia to use this settings file over the default one.
You can also test specific things by giving their path
evennia test --settings settings.py .world.tests.YourTest
evennia test --settings settings.py world.tests.YourTest
## Writing new unit tests
@ -106,15 +106,15 @@ To test this, run
to run the entire test module
evennia test --settings setings.py .world.tests
evennia test --settings setings.py world.tests
or a specific class:
evennia test --settings settings.py .world.tests.TestObj
evennia test --settings settings.py world.tests.TestObj
You can also run a specific test:
evennia test --settings settings.py .world.tests.TestObj.test_alternative_call
evennia test --settings settings.py world.tests.TestObj.test_alternative_call
You might also want to read the [Python documentation for the unittest module](https://docs.python.org/library/unittest.html).
@ -303,4 +303,4 @@ After doing so, you can then run tests without migrations by adding the `--nomig
```
evennia test --settings settings.py --nomigrations .
```
```