Re: Prevent Django tests from accessing internet (except localhost)

2018-07-23 Thread Kum
Is there a way to prevent people from accidentally doing so? On Monday, July 23, 2018 at 7:39:27 AM UTC-4, Jason wrote: > > you shouldn't be accessing external services with your tests, you should > mock or patch them with expected responses/failures and test based on that. > -- You received th

Prevent Django tests from accessing internet (except localhost)

2018-07-23 Thread Kum
Hi, Is there a global config I can enable to prevent any Django tests in a project from accessing the internet (i.e., only allow network calls to localhost) ? Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this gr