@@ -24,8 +24,10 @@ class TestFingerprint:
2424
2525 @pytest .mark .asyncio
2626 async def test_fingerprints_are_unique (self ):
27- """Test if fingerprints generated from multiple browser instances are unique"""
28- print ("\n Starting to test pydoll fingerprint spoofing functionality..." )
27+ """Test if fingerprints generated from multiple browser instances
28+ are unique"""
29+ print ("\n Starting to test pydoll fingerprint spoofing functionality"
30+ "..." )
2931
3032 # Collect all fingerprints
3133 results = []
@@ -63,18 +65,23 @@ async def test_fingerprints_are_unique(self):
6365 ]
6466 print (f" Appears in instances: { indices } " )
6567
66- # Show detailed information for instances using the same fingerprint
68+ # Show detailed information for instances using the same
69+ # fingerprint
6770 print (" Details:" )
6871 for idx in indices :
6972 r = next (res for res in results if res ["index" ] == idx )
70- print (f" Instance #{ idx } UA: { r ['user_agent' ][:30 ]} ..." )
73+ print (f" Instance #{ idx } UA: "
74+ f"{ r ['user_agent' ][:30 ]} ..." )
7175
7276 # Verify all fingerprints are unique
7377 if len (unique_ids ) < len (fingerprint_ids ):
74- print ("\n ⚠️ Duplicate fingerprints detected, but this doesn't necessarily mean fingerprint spoofing completely failed" )
75- print ("FingerprintJS uses many deep browser features, and may require more technical measures for complete spoofing" )
78+ print ("\n ⚠️ Duplicate fingerprints detected, but this doesn't "
79+ "necessarily mean fingerprint spoofing completely failed" )
80+ print ("FingerprintJS uses many deep browser features, and may "
81+ "require more technical measures for complete spoofing" )
7682 else :
77- print ("\n ✅ All fingerprint IDs are unique, fingerprint spoofing is working correctly!" )
83+ print ("\n ✅ All fingerprint IDs are unique, fingerprint spoofing "
84+ "is working correctly!" )
7885
7986 # Display detailed results
8087 print ("\n Detailed results:" )
0 commit comments