add container to testdata.py
All checks were successful
/ test (push) Successful in 2m53s
/ deploy (push) Successful in 4m31s

This commit is contained in:
j3d1 2024-12-27 20:31:04 +01:00
parent 3068597f3d
commit f6455638d7

View file

@ -70,6 +70,15 @@ def setup():
issue_thread=issue_thread, issue_thread=issue_thread,
)[0] )[0]
from inventory.models import Container
Container.objects.get_or_create(
id=1,
name='testcontainer'
)[0]
def main(): def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings")