Skip to content

Commit

Permalink
Add testdata for inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrgn committed Jan 22, 2025
1 parent 81ec7a3 commit 88d239b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
__pycache__
.env
interna/media/
!interna/media/testdata/
venv/
VENV/
.mypy_cache/
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Testdaten laden (optional):

./manage.py loaddata --app crowdfund testdata
./manage.py loaddata --app memberdb testdata
./manage.py loaddata --app inventory testdata

Entwicklungsserver starten:

Expand Down
13 changes: 13 additions & 0 deletions interna/inventory/fixtures/testdata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- model: inventory.item
pkg: 1
fields:
identifier: um2
name: Ultimaker 2+
description: Unser FDM-3D-Drucker.
image: testdata/um2.jpg
owner: Coredump
manager: Danilo
category: manufacturing
since: 2015-08-30
cost: 2500
howto_url: https://forum.coredump.ch/t/howto-3d-drucken/69
Binary file added interna/media/testdata/um2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dj-database-url>=2.1,<3
djangorestframework>=3.14,<3.15
python-dotenv>=0.10,<0.11
Pillow>=10,<11
PyYAML~=6.0

# Useful libs
django-messagegroups==0.4.5
Expand Down

0 comments on commit 88d239b

Please sign in to comment.