Wednesday, July 25, 2018

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

By the way, another approach which is quite convenient is to run unit tests in docker during build stage (you will need to use settings with sqlite)
Quite convenient in combination with pipeline or CI framework, for example bitbucket pipelines
Or even on localhost

On Monday, 23 July 2018 19:04:48 UTC+8, Kum wrote:
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 group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/43e58c46-951a-4cf4-a92c-f75fb02ff04b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment