统一推送前Python代码格式
This commit is contained in:
@@ -56,9 +56,7 @@ def test_qimei_h38_aliases_uuid42_without_overwriting_existing_value():
|
||||
assert fields["_qimei_h38"] == uuid42
|
||||
|
||||
fields = cookie_fields(
|
||||
fill_web_cookie_fields(
|
||||
f"_qimei_uuid42={uuid42}; _qimei_h38=historical", ""
|
||||
)
|
||||
fill_web_cookie_fields(f"_qimei_uuid42={uuid42}; _qimei_h38=historical", "")
|
||||
)
|
||||
assert fields["_qimei_h38"] == "historical"
|
||||
|
||||
@@ -123,12 +121,14 @@ def test_sdk_uuid42_trace_vectors_have_confirmed_outer_layout():
|
||||
|
||||
|
||||
def test_device_profile_builds_stable_webview_feature_approximation():
|
||||
feature = qimei_feature_from_device_profile({
|
||||
"vendor": "vivo",
|
||||
"model": "V2370A",
|
||||
"width": "1080",
|
||||
"height": "2412",
|
||||
})
|
||||
feature = qimei_feature_from_device_profile(
|
||||
{
|
||||
"vendor": "vivo",
|
||||
"model": "V2370A",
|
||||
"width": "1080",
|
||||
"height": "2412",
|
||||
}
|
||||
)
|
||||
assert feature["screen"] == {
|
||||
"resolution": "1080x2412",
|
||||
"availResolution": "1080x2412",
|
||||
@@ -136,11 +136,15 @@ def test_device_profile_builds_stable_webview_feature_approximation():
|
||||
assert feature["navigator"]["pdfViewerEnabled"] is False
|
||||
assert "Adreno" in str(feature["webgl"])
|
||||
first = qimei_fingerprint_generate(feature)
|
||||
second = qimei_fingerprint_generate(qimei_feature_from_device_profile({
|
||||
"vendor": "vivo",
|
||||
"model": "V2370A",
|
||||
"width": "1080",
|
||||
"height": "2412",
|
||||
}))
|
||||
second = qimei_fingerprint_generate(
|
||||
qimei_feature_from_device_profile(
|
||||
{
|
||||
"vendor": "vivo",
|
||||
"model": "V2370A",
|
||||
"width": "1080",
|
||||
"height": "2412",
|
||||
}
|
||||
)
|
||||
)
|
||||
assert first == second
|
||||
assert first != qimei_fingerprint_generate()
|
||||
|
||||
Reference in New Issue
Block a user