diff options
| author | za <za@python.or.id> | 2016-10-27 14:53:39 +0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-11-10 21:30:21 -0500 |
| commit | 321e94fa41b121f65c02119c02098df327bbd569 (patch) | |
| tree | ce5476c191d589aca4b124f841dfbccac8dd299f /tests/staticfiles_tests | |
| parent | 4bb70cbcc60794f515c9bfefeca87b8272d33c0c (diff) | |
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
Diffstat (limited to 'tests/staticfiles_tests')
| -rw-r--r-- | tests/staticfiles_tests/test_liveserver.py | 2 | ||||
| -rw-r--r-- | tests/staticfiles_tests/test_management.py | 8 | ||||
| -rw-r--r-- | tests/staticfiles_tests/test_storage.py | 5 |
3 files changed, 7 insertions, 8 deletions
diff --git a/tests/staticfiles_tests/test_liveserver.py b/tests/staticfiles_tests/test_liveserver.py index 1bbadb337b..1714ae8b1b 100644 --- a/tests/staticfiles_tests/test_liveserver.py +++ b/tests/staticfiles_tests/test_liveserver.py @@ -83,7 +83,7 @@ class StaticLiveServerView(LiveServerBase): @modify_settings(INSTALLED_APPS={'append': 'staticfiles_tests.apps.test'}) def test_collectstatic_emulation(self): """ - Test that StaticLiveServerTestCase use of staticfiles' serve() allows it + StaticLiveServerTestCase use of staticfiles' serve() allows it to discover app's static assets without having to collectstatic first. """ with contextlib.closing(self.urlopen('/static/test/file.txt')) as f: diff --git a/tests/staticfiles_tests/test_management.py b/tests/staticfiles_tests/test_management.py index 6ac9794b34..d4d5064b74 100644 --- a/tests/staticfiles_tests/test_management.py +++ b/tests/staticfiles_tests/test_management.py @@ -45,7 +45,7 @@ class TestFindStatic(TestDefaults, CollectionTestCase): def test_all_files(self): """ - Test that findstatic returns all candidate files if run without --first and -v1. + findstatic returns all candidate files if run without --first and -v1. """ result = call_command('findstatic', 'test/file.txt', verbosity=1, stdout=six.StringIO()) lines = [l.strip() for l in result.split('\n')] @@ -55,7 +55,7 @@ class TestFindStatic(TestDefaults, CollectionTestCase): def test_all_files_less_verbose(self): """ - Test that findstatic returns all candidate files if run without --first and -v0. + findstatic returns all candidate files if run without --first and -v0. """ result = call_command('findstatic', 'test/file.txt', verbosity=0, stdout=six.StringIO()) lines = [l.strip() for l in result.split('\n')] @@ -65,7 +65,7 @@ class TestFindStatic(TestDefaults, CollectionTestCase): def test_all_files_more_verbose(self): """ - Test that findstatic returns all candidate files if run without --first and -v2. + findstatic returns all candidate files if run without --first and -v2. Also, test that findstatic returns the searched locations with -v2. """ result = call_command('findstatic', 'test/file.txt', verbosity=2, stdout=six.StringIO()) @@ -140,7 +140,7 @@ class TestCollection(TestDefaults, CollectionTestCase): """ def test_ignore(self): """ - Test that -i patterns are ignored. + -i patterns are ignored. """ self.assertFileNotFound('test/test.ignoreme') diff --git a/tests/staticfiles_tests/test_storage.py b/tests/staticfiles_tests/test_storage.py index 5298a287fd..c0fed0e4ae 100644 --- a/tests/staticfiles_tests/test_storage.py +++ b/tests/staticfiles_tests/test_storage.py @@ -148,7 +148,7 @@ class TestHashedFiles(object): def test_post_processing(self): """ - Test that post_processing behaves correctly. + post_processing behaves correctly. Files that are alterable should always be post-processed; files that aren't should be skipped. @@ -188,8 +188,7 @@ class TestHashedFiles(object): ) def test_post_processing_failure(self): """ - Test that post_processing indicates the origin of the error when it - fails. Regression test for #18986. + post_processing indicates the origin of the error when it fails. """ finders.get_finder.cache_clear() err = six.StringIO() |
