summaryrefslogtreecommitdiffstats
path: root/testing/webcompat/shims/tests/test_1701685_advertising_com.py
blob: b89cf51135ccfab43366710aecef13ab39b809d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import pytest

from .common import verify_redirectors

URLS = {
    "https://ads.advertising.com/x.js?1": "js",
    "https://ads.advertising.com/x?1": "image",
}


@pytest.mark.asyncio
@pytest.mark.with_strict_etp
@pytest.mark.with_shims
async def test_works_with_shims(client):
    await verify_redirectors(client, URLS, "REDIRECTED")


@pytest.mark.asyncio
@pytest.mark.with_strict_etp
@pytest.mark.without_shims
async def test_works_without_etp(client):
    await verify_redirectors(client, URLS, "BLOCKED")