1
0
mirror of https://github.com/django/django.git synced 2025-07-12 05:39:11 +00:00

[2.2.x] Fixed #30810 -- Fixed WatchmanReloaderTests.test_setting_timeout_from_environment_variable test.

client_timeout is an instance attribute.

Backport of 2fd610eb301dc01e100befed891e8007fd2e981f from master
This commit is contained in:
Pablo García 2019-09-26 14:55:25 -07:00 committed by Mariusz Felisiak
parent 80d78fd651
commit 38af257988

View File

@ -666,7 +666,7 @@ class WatchmanReloaderTests(ReloaderTests, IntegrationTests):
@mock.patch.dict(os.environ, {'DJANGO_WATCHMAN_TIMEOUT': '10'}) @mock.patch.dict(os.environ, {'DJANGO_WATCHMAN_TIMEOUT': '10'})
def test_setting_timeout_from_environment_variable(self): def test_setting_timeout_from_environment_variable(self):
self.assertEqual(self.RELOADER_CLS.client_timeout, 10) self.assertEqual(self.RELOADER_CLS().client_timeout, 10)
class StatReloaderTests(ReloaderTests, IntegrationTests): class StatReloaderTests(ReloaderTests, IntegrationTests):