()
| 62 | @pytest.mark.asyncio |
| 63 | @pytest.mark.flaky(reruns=3, reruns_delay=2) |
| 64 | async def test_update_impersonate(): |
| 65 | client = rnet.Client(impersonate=Impersonate.Firefox133) |
| 66 | assert ( |
| 67 | client.user_agent |
| 68 | == "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:133.0) Gecko/20100101 Firefox/133.0" |
| 69 | ) |
| 70 | client.update( |
| 71 | impersonate=ImpersonateOption( |
| 72 | impersonate=Impersonate.Firefox135, |
| 73 | impersonate_os=ImpersonateOS.Windows, |
| 74 | skip_headers=False, |
| 75 | ) |
| 76 | ) |
| 77 | assert ( |
| 78 | client.user_agent |
| 79 | == "Mozilla/5.0 (Windows NT 10.0; rv:135.0) Gecko/20100101 Firefox/135.0" |
| 80 | ) |
| 81 | |
| 82 | |
| 83 | @pytest.mark.asyncio |
nothing calls this directly
no test coverage detected