diff options
| author | Tim Graham <timograham@gmail.com> | 2022-05-01 21:44:04 -0400 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-01-31 15:28:16 +0100 |
| commit | 4c2b26174f044adc4a6461154385720479eaee55 (patch) | |
| tree | 4cc347d7710fdeb6b852cb04f29915c49a8c6e67 | |
| parent | d21543182d2cb9947650ecc48c068d1bfb7d0311 (diff) | |
[3.2.x] Removed 'tests' path prefix in a couple tests.
Backport of 694cf458f16b8d340a3195244196980b2dec34fd from main.
| -rw-r--r-- | tests/i18n/tests.py | 2 | ||||
| -rw-r--r-- | tests/sessions_tests/tests.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/i18n/tests.py b/tests/i18n/tests.py index 7edceb1c95..4c31c3bc66 100644 --- a/tests/i18n/tests.py +++ b/tests/i18n/tests.py @@ -1948,7 +1948,7 @@ class WatchForTranslationChangesTests(SimpleTestCase): def test_i18n_app_dirs(self): mocked_sender = mock.MagicMock() - with self.settings(INSTALLED_APPS=['tests.i18n.sampleproject']): + with self.settings(INSTALLED_APPS=["i18n.sampleproject"]): watch_for_translation_changes(mocked_sender) project_dir = Path(__file__).parent / 'sampleproject' / 'locale' mocked_sender.watch_dir.assert_any_call(project_dir, '**/*.mo') diff --git a/tests/sessions_tests/tests.py b/tests/sessions_tests/tests.py index 73d2a13a9f..ad5dbdb6dd 100644 --- a/tests/sessions_tests/tests.py +++ b/tests/sessions_tests/tests.py @@ -915,9 +915,9 @@ class CookieSessionTests(SessionTestsMixin, SimpleTestCase): class ClearSessionsCommandTests(SimpleTestCase): def test_clearsessions_unsupported(self): msg = ( - "Session engine 'tests.sessions_tests.no_clear_expired' doesn't " + "Session engine 'sessions_tests.no_clear_expired' doesn't " "support clearing expired sessions." ) - with self.settings(SESSION_ENGINE='tests.sessions_tests.no_clear_expired'): + with self.settings(SESSION_ENGINE="sessions_tests.no_clear_expired"): with self.assertRaisesMessage(management.CommandError, msg): management.call_command('clearsessions') |
