Skip to content

Commit

Permalink
Remove test case (no longer relevant)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtitherington committed Feb 26, 2024
1 parent b4c3b9a commit 93fddee
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions backend/app/tests/test_environments.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import uuid
from django.test import TestCase

from django.contrib.auth import get_user_model
from django.test import TestCase

from app.models import Environment, Project, ProjectMembership

User = get_user_model()
Expand All @@ -20,13 +22,6 @@ def test_environment_creation(self):
self.assertEqual(self.environment.name, "Staging")
self.assertEqual(self.environment.project, self.project)

def test_environment_identifier(self):
"""
Test if the environment gets a UUID identifier if not provided.
"""
self.assertIsNotNone(self.environment.identifier)
self.assertTrue(isinstance(self.environment.identifier, uuid.UUID))

def test_unique_together_constraint(self):
"""
Test the unique together constraint for identifier and project.
Expand Down

0 comments on commit 93fddee

Please sign in to comment.