[extensions-web/django/upgrade-1.8] django: test file name should begin with "test" in Django 1.6+
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web/django/upgrade-1.8] django: test file name should begin with "test" in Django 1.6+
- Date: Tue, 25 Oct 2016 20:28:36 +0000 (UTC)
commit 798e17f8ee9cb6475a624ff3fdd17694ce257ff1
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Tue Oct 25 19:29:29 2016 +0300
django: test file name should begin with "test" in Django 1.6+
sweettooth/review/{ => tests}/tests.py | 2 +-
.../review/{difftests.py => tests/tests_diff.py} | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/review/tests/__init__.py b/sweettooth/review/tests/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/sweettooth/review/tests.py b/sweettooth/review/tests/tests.py
similarity index 98%
rename from sweettooth/review/tests.py
rename to sweettooth/review/tests/tests.py
index f67c40d..d1b4556 100644
--- a/sweettooth/review/tests.py
+++ b/sweettooth/review/tests/tests.py
@@ -7,7 +7,7 @@ from sweettooth.review.views import get_old_version, should_auto_approve_changes
from sweettooth.testutils import BasicUserTestCase
-from difftests import DiffTest
+from tests_diff import DiffTest
class DiffViewTest(BasicUserTestCase, TestCase):
def test_get_zipfiles(self):
diff --git a/sweettooth/review/difftests.py b/sweettooth/review/tests/tests_diff.py
similarity index 95%
rename from sweettooth/review/difftests.py
rename to sweettooth/review/tests/tests_diff.py
index da8fac1..a32bb63 100644
--- a/sweettooth/review/difftests.py
+++ b/sweettooth/review/tests/tests_diff.py
@@ -1,6 +1,6 @@
from unittest import TestCase
-from diffutils import get_chunks, new_chunk, new_line
+from sweettooth.review.diffutils import get_chunks, new_chunk, new_line
def strip_regions(chunks):
for chunk in chunks:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]