From 4dbbc50cbb6fad0efb83634cb8448ef794967c71 Mon Sep 17 00:00:00 2001 From: Gust Date: Wed, 11 Feb 2015 13:40:41 -0200 Subject: [PATCH] Fix tests --- colab/proxy/gitlab/search_indexes.py | 1 - colab/proxy/gitlab/tests/test_gitlab.py | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/colab/proxy/gitlab/search_indexes.py b/colab/proxy/gitlab/search_indexes.py index b590835..01f1b4a 100644 --- a/colab/proxy/gitlab/search_indexes.py +++ b/colab/proxy/gitlab/search_indexes.py @@ -118,4 +118,3 @@ class GitlabCommentIndex(indexes.SearchIndex, indexes.Indexable): def prepare_tag(self, obj): return obj.tag - diff --git a/colab/proxy/gitlab/tests/test_gitlab.py b/colab/proxy/gitlab/tests/test_gitlab.py index 1c3a69c..dcdce81 100644 --- a/colab/proxy/gitlab/tests/test_gitlab.py +++ b/colab/proxy/gitlab/tests/test_gitlab.py @@ -2,13 +2,14 @@ Test User class. Objective: Test parameters, and behavior. """ +from datetime import datetime + + from django.test import TestCase, Client from colab.accounts.models import User from colab.proxy.gitlab.models import GitlabProject, \ GitlabIssue, GitlabComment, GitlabMergeRequest -from datetime import datetime - class GitlabTest(TestCase): @@ -54,7 +55,6 @@ class GitlabTest(TestCase): g.name = "colab" g.name_with_namespace = "Software Public / Colab" g.path_with_namespace = "softwarepublico/colab" - g.modified = datetime.now() g.created_at = datetime.now() g.last_activity_at = datetime.now() g.save() @@ -65,7 +65,7 @@ class GitlabTest(TestCase): mr.title = "Include plugin support" mr.description = "Merge request for plugin support" mr.state = "Closed" - mr.modified = datetime.now() + mr.created_at = datetime.now() mr.update_user(self.user.username) mr.save() @@ -74,7 +74,7 @@ class GitlabTest(TestCase): i.project = g i.title = "Issue for colab" i.description = "Issue reported to colab" - i.modified = datetime.now() + i.created_at = datetime.now() i.state = "Open" i.update_user(self.user.username) i.save() -- libgit2 0.21.2