Commit 71ba3dba authored by Tom Pillot's avatar Tom Pillot
Browse files

Format and modify tests

parent 8a48591a
......@@ -951,7 +951,7 @@ class CIBuild(models.Model):
branch = models.ForeignKey(Branch, on_delete=models.CASCADE)
class Meta:
ordering = ('-started',)
ordering = ('-started', )
def url(self):
if self.repo.forge.source == SOURCES.github:
......@@ -968,7 +968,7 @@ class CIJob(models.Model):
branch = models.ForeignKey(Branch, on_delete=models.CASCADE)
class Meta:
ordering = ('-started',)
ordering = ('-started', )
class Tag(models.Model):
......@@ -977,7 +977,7 @@ class Tag(models.Model):
project = models.ForeignKey(Project, on_delete=models.CASCADE)
class Meta:
ordering = ('name',)
ordering = ('name', )
unique_together = ('name', 'project')
def __str__(self):
......
......@@ -25,7 +25,7 @@ class RainboardTests(TestCase):
self.assertEqual(models.License.objects.count(), license_count+1)
self.assertEqual(models.Project.objects.count(), project_count+1)
project = models.Project.objects.get(name='Rainboard Tests')
project = models.Project.objects.get(name='rainboard tests')
self.assertEqual(project.slug, 'rainboard-tests')
self.assertEqual(project.registry(), 'memmos.laas.fr:5000')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment