summaryrefslogtreecommitdiffstats
path: root/testing/webcompat/shims/tests/test_1717806_stickyadstv.py
blob: 74a895aa51b2657e1f1b8009d22295fc2019becf (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.stickyadstv.com/auto-user-sync?1": "image",
    "https://ads.stickyadstv.com/user-matching?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")