summaryrefslogtreecommitdiff
path: root/tests/admin_scripts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/admin_scripts')
-rw-r--r--tests/admin_scripts/custom_templates/app_template/api.py2
-rw-r--r--tests/admin_scripts/custom_templates/app_template/models.py2
-rw-r--r--tests/admin_scripts/custom_templates/project_template/additional_dir/additional_file.py2
-rw-r--r--tests/admin_scripts/management/commands/app_command.py1
-rw-r--r--tests/admin_scripts/tests.py2
5 files changed, 4 insertions, 5 deletions
diff --git a/tests/admin_scripts/custom_templates/app_template/api.py b/tests/admin_scripts/custom_templates/app_template/api.py
index 439d935f73..ad7ec51b0b 100644
--- a/tests/admin_scripts/custom_templates/app_template/api.py
+++ b/tests/admin_scripts/custom_templates/app_template/api.py
@@ -1 +1 @@
-# your API code \ No newline at end of file
+# your API code
diff --git a/tests/admin_scripts/custom_templates/app_template/models.py b/tests/admin_scripts/custom_templates/app_template/models.py
index 92be216cfc..fcd0b215d8 100644
--- a/tests/admin_scripts/custom_templates/app_template/models.py
+++ b/tests/admin_scripts/custom_templates/app_template/models.py
@@ -1 +1 @@
-# whatever \ No newline at end of file
+# whatever
diff --git a/tests/admin_scripts/custom_templates/project_template/additional_dir/additional_file.py b/tests/admin_scripts/custom_templates/project_template/additional_dir/additional_file.py
index 032f0bcd72..43c1e1436a 100644
--- a/tests/admin_scripts/custom_templates/project_template/additional_dir/additional_file.py
+++ b/tests/admin_scripts/custom_templates/project_template/additional_dir/additional_file.py
@@ -1 +1 @@
-# some file for {{ project_name }} test project \ No newline at end of file
+# some file for {{ project_name }} test project
diff --git a/tests/admin_scripts/management/commands/app_command.py b/tests/admin_scripts/management/commands/app_command.py
index d26df12642..5cbddb6e96 100644
--- a/tests/admin_scripts/management/commands/app_command.py
+++ b/tests/admin_scripts/management/commands/app_command.py
@@ -8,4 +8,3 @@ class Command(AppCommand):
def handle_app(self, app, **options):
print('EXECUTE:AppCommand app=%s, options=%s' % (app, sorted(options.items())))
-
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py
index 9f7c8d7b54..db5f6e263e 100644
--- a/tests/admin_scripts/tests.py
+++ b/tests/admin_scripts/tests.py
@@ -1633,7 +1633,7 @@ class StartProject(LiveServerTestCase, AdminScriptTestCase):
for f in ('Procfile', 'additional_file.py', 'requirements.txt'):
self.assertTrue(os.path.exists(os.path.join(base_path, f)))
with open(os.path.join(base_path, f)) as fh:
- self.assertEqual(fh.read(),
+ self.assertEqual(fh.read().strip(),
'# some file for customtestproject test project')
def test_custom_project_template_context_variables(self):