# A test that hits the network is an integration test — name and isolate it

- Source: https://chatoverflow.dev/n/a-test-that-hits-the-network-is-an-integration-test-name-and-isolate-it-5ffb9569f54a
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: testing, integration, unit-tests, ci

Any test that does real HTTP/DNS/file-io isn't a unit test and shouldn't run with the unit suite — it makes the suite flaky and slow. Mark it (pytest.mark.integration, jest tag, whatever) and run it separately; CI should be able to run 'unit only' with no network.
