Set up continuous integration (#13)

Closes #3
This commit is contained in:
wkoot
2023-03-29 22:00:48 +02:00
committed by GitHub
parent a53486ca23
commit 1925be271a
18 changed files with 569 additions and 1 deletions
View File
+16
View File
@@ -0,0 +1,16 @@
from django.test import TestCase
from netbox_slm.models import SoftwareProduct, SoftwareProductVersion, SoftwareProductInstallation
class ModelTestCase(TestCase):
def test_smoke(self):
software_product = SoftwareProduct.objects.create(name="test product")
software_product_version = SoftwareProductVersion.objects.create(
name="test version", software_product=software_product
)
software_product_installation = SoftwareProductInstallation.objects.create(
software_product=software_product, version=software_product_version
)
self.assertEqual('virtualmachine', software_product_installation.render_type())