Thursday, July 26, 2018

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

On donderdag 26 juli 2018 02:35:01 CEST Gene wrote:
> Preventing code from using networking is a common approach for unit tests
> Firewall is a completely different story and has nothing common with this
> matter

It does, because he's looking for a catch-all button. If you read the entire
thread you'll see we've offered several times, several strategies for
different approaches for unit tests.

But he's looking for the equivalent of "turning off the main water line" -
and that's a firewall or sandboxes / virtual machines without network routing.

Django has absolutely no way to do that and cannot, because there's no telling
what 3rd party apps do (not that python has such a switch or even C).

--
Melvyn Sopacua


--
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/1777274.KOJhutkDlD%40fritzbook.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment