From 1dae4ac1778f04805c0ed62c8debb13b281ba02b Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 10 Oct 2013 16:42:30 -0400 Subject: Whitespace cleanup. * Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs. --- tests/admin_scripts/custom_templates/app_template/api.py | 2 +- tests/admin_scripts/custom_templates/app_template/models.py | 2 +- .../custom_templates/project_template/additional_dir/additional_file.py | 2 +- tests/admin_scripts/management/commands/app_command.py | 1 - tests/admin_scripts/tests.py | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) (limited to 'tests/admin_scripts') 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): -- cgit v1.3