diff options
| author | oliver <myungsekyo@gmail.com> | 2019-03-30 23:14:07 +0900 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-03-30 10:14:07 -0400 |
| commit | 03bee42a7e28b1bbd6bb8df03b9e9bdd54f44837 (patch) | |
| tree | 5e7be01a40cecf077fbbafeeb2700751e8d4e231 /tests/admin_scripts | |
| parent | 96446c7152c115beee925bbd1f3273a3634d7983 (diff) | |
| download | django-03bee42a7e28b1bbd6bb8df03b9e9bdd54f44837.tar.gz | |
Made startapp/project's overlaying error message use 'app' or 'project'.
Diffstat (limited to 'tests/admin_scripts')
| -rw-r--r-- | tests/admin_scripts/tests.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py index 32233cf258..f6fb42b1aa 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -1938,7 +1938,11 @@ class StartProject(LiveServerTestCase, AdminScriptTestCase): # running again.. out, err = self.run_django_admin(args) self.assertNoOutput(out) - self.assertOutput(err, "already exists") + self.assertOutput( + err, + "already exists. Overlaying a project into an existing directory " + "won't replace conflicting files." + ) def test_custom_project_template(self): "Make sure the startproject management command is able to use a different project template" @@ -2128,6 +2132,15 @@ class StartApp(AdminScriptTestCase): ) self.assertFalse(os.path.exists(testproject_dir)) + def test_overlaying_app(self): + self.run_django_admin(['startapp', 'app1']) + out, err = self.run_django_admin(['startapp', 'app2', 'app1']) + self.assertOutput( + err, + "already exists. Overlaying an app into an existing directory " + "won't replace conflicting files." + ) + class DiffSettings(AdminScriptTestCase): """Tests for diffsettings management command.""" |
