uaf.git

uaf

~
git clone https://github.com/debuman/uaf.git

tests/conftest.py (1498B)

      1 """Common test fixtures for AP Scanner tests."""
      2 
      3 import pytest
      4 from datetime import datetime
      5 
      6 from ap_scanner.models import AccessPoint
      7 
      8 
      9 @pytest.fixture
     10 def sample_ap():
     11     return AccessPoint(
     12         bssid="AA:BB:CC:DD:EE:FF",
     13         ssid="TestNetwork",
     14         channel=6,
     15         rssi=-42,
     16         encryption="WPA2",
     17         cipher="CCMP",
     18         auth="PSK",
     19         band="2.4GHz",
     20         wifi_standard="b, g, n",
     21         width=40,
     22         channel_desc="6",
     23         vendor="TP-Link",
     24         wps="2.0",
     25         wpa2="PSK-CCMP",
     26         first_seen=datetime(2026, 1, 1, 12, 0, 0),
     27         last_seen=datetime(2026, 1, 1, 12, 5, 0),
     28         beacon_count=100,
     29         frequency=2437,
     30     )
     31 
     32 
     33 @pytest.fixture
     34 def hidden_ap():
     35     return AccessPoint(
     36         bssid="11:22:33:44:55:66",
     37         ssid="",
     38         channel=36,
     39         rssi=-65,
     40         encryption="WPA3",
     41         cipher="CCMP-256",
     42         auth="SAE",
     43         band="5GHz",
     44         wifi_standard="a, n, ac, ax",
     45         width=80,
     46         channel_desc="36+40+44+48",
     47         wpa3="SAE-CCMP-256",
     48         first_seen=datetime(2026, 1, 1, 12, 0, 0),
     49         last_seen=datetime(2026, 1, 1, 12, 5, 0),
     50         beacon_count=50,
     51         frequency=5180,
     52     )
     53 
     54 
     55 @pytest.fixture
     56 def open_ap():
     57     return AccessPoint(
     58         bssid="AA:AA:AA:AA:AA:AA",
     59         ssid="CafeGuest",
     60         channel=11,
     61         rssi=-73,
     62         encryption="OPN",
     63         cipher="--",
     64         auth="--",
     65         band="2.4GHz",
     66         wifi_standard="b, g, n",
     67     )