batman (working version kinda)
This commit is contained in:
commit
6dd38036e7
65 changed files with 3950 additions and 0 deletions
11
tests/test_app.py
Normal file
11
tests/test_app.py
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue