tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_1701685_advertising_com.py (511B)


      1 import pytest
      2 
      3 from .common import verify_redirectors
      4 
      5 URLS = {
      6    "https://ads.advertising.com/x.js?1": "js",
      7    "https://ads.advertising.com/x?1": "image",
      8 }
      9 
     10 
     11 @pytest.mark.asyncio
     12 @pytest.mark.with_strict_etp
     13 @pytest.mark.with_shims
     14 async def test_works_with_shims(client):
     15    await verify_redirectors(client, URLS, "REDIRECTED")
     16 
     17 
     18 @pytest.mark.asyncio
     19 @pytest.mark.with_strict_etp
     20 @pytest.mark.without_shims
     21 async def test_works_without_etp(client):
     22    await verify_redirectors(client, URLS, "BLOCKED")