mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36:44 +00:00
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:
parent
7a3ceb9d6e
commit
8ac852728e
@ -188,6 +188,19 @@ To see all the available options:
|
|||||||
invoke dev.test --help
|
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
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
BIN
src/backend/InvenTree/.config.yaml.swp
Normal file
BIN
src/backend/InvenTree/.config.yaml.swp
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user