batman (working version kinda)

This commit is contained in:
pika 2025-03-30 19:20:13 +02:00
commit 6dd38036e7
65 changed files with 3950 additions and 0 deletions

11
tests/test_app.py Normal file
View file

@ -0,0 +1,11 @@
import pytest
from app.core import models
# Example test
@pytest.mark.parametrize("cidr, expected", [
('192.168.1.0/24', 256),
('10.0.0.0/8', 16777216),
])
def test_subnet_cidr_parsing(cidr, expected):
subnet = models.Subnet(cidr=cidr)
assert subnet.used_ips == expected