Added a comment on database creation for local testing (#8603)

* New pic

* Marked external icon in picture

* Added a comment on database creation for unittest

* Update contributing.md

---------

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
MichaelandOliver authored and GitHub committed 2024-12-02 09:47:49 +11:00
1 parent 7a3ceb9d6e
commit 8ac852728e
2 files changed
+13

No files matched your search

+13
View File
@@ -188,6 +188,19 @@ To see all the available options:
invoke dev.test --help
```
#### Database Permission Issues
For local testing django creates a test database and removes it after testing. If you encounter permission issues while running unit test, ensure that your database user has permission to create new databases.
For example, in PostgreSQL, run:
```
alter user myuser createdb;
```
!!! info "Devcontainer"
The default database container which is provided in the devcontainer is already setup with the required permissions
## Code Style
Code style is automatically checked as part of the project's CI pipeline on GitHub. This means that any pull requests which do not conform to the style guidelines will fail CI checks.