mirror of
https://github.com/Cian-H/I-Form_Server_Node_Deployer.git
synced 2025-12-23 06:32:08 +00:00
cleanup
This commit is contained in:
@@ -4,21 +4,6 @@ from ipaddress import IPv4Address, IPv6Address, ip_address
|
|||||||
class IPAddress:
|
class IPAddress:
|
||||||
def __init__(self, *args, **kwargs) -> None:
|
def __init__(self, *args, **kwargs) -> None:
|
||||||
self.obj: IPv4Address | IPv6Address = ip_address(*args, **kwargs)
|
self.obj: IPv4Address | IPv6Address = ip_address(*args, **kwargs)
|
||||||
# to_passthrough = (
|
|
||||||
# "compressed",
|
|
||||||
# "exploded",
|
|
||||||
# "is_global",
|
|
||||||
# "is_link_local",
|
|
||||||
# "is_loopback",
|
|
||||||
# "is_multicast",
|
|
||||||
# "is_private",
|
|
||||||
# "is_reserved",
|
|
||||||
# "is_unspecified",
|
|
||||||
# "max_prefixlen",
|
|
||||||
# "packed",
|
|
||||||
# "reverse_pointer",
|
|
||||||
# "version",
|
|
||||||
# )
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def compressed(self) -> str:
|
def compressed(self) -> str:
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import atexit
|
import atexit
|
||||||
import filecmp
|
import filecmp
|
||||||
|
from ipaddress import IPv4Address, IPv6Address
|
||||||
import os
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import pickle
|
import pickle
|
||||||
import shutil
|
import shutil
|
||||||
from ipaddress import IPv4Address, IPv6Address
|
|
||||||
|
|
||||||
from hypothesis import given
|
from hypothesis import given
|
||||||
from hypothesis import strategies as st
|
from hypothesis import strategies as st
|
||||||
@@ -36,7 +36,7 @@ def cleanup():
|
|||||||
|
|
||||||
atexit.register(cleanup)
|
atexit.register(cleanup)
|
||||||
|
|
||||||
from node_deployer import ip_interface, autoignition, create_disk, create_img # noqa: E402
|
from node_deployer import autoignition, create_disk, create_img, ip_interface # noqa: E402
|
||||||
|
|
||||||
|
|
||||||
with open(config.PROJECT_ROOT / "tests/data/node_deployer/test_args.toml", "rb") as f:
|
with open(config.PROJECT_ROOT / "tests/data/node_deployer/test_args.toml", "rb") as f:
|
||||||
|
|||||||
Reference in New Issue
Block a user