feat: shared colors and icons with transforms

This commit is contained in:
dextmorgn
2025-07-02 17:15:37 +02:00
parent 18a6d53593
commit 6dcc1e0f02
52 changed files with 2101 additions and 537 deletions

View File

@@ -0,0 +1,38 @@
import re
from typing import Dict
from app.tools.network.asnmap import AsnmapTool
tool = AsnmapTool()
def test_name():
assert tool.name() == "asnmap"
def test_description():
assert tool.description() == "ASN mapping and network reconnaissance tool."
def test_category():
assert tool.category() == "ASN discovery"
def test_image():
assert tool.get_image() == "projectdiscovery/asnmap"
def test_install():
tool.install()
assert tool.is_installed() == True
def test_version():
tool.install()
version = tool.version()
# Check that version follows the expected format: v followed by digits and dots
assert re.match(r'^v[\d\.]+$', version)
def test_launch_wrong_type():
import pytest
with pytest.raises(KeyError, match="'domains'"):
tool.launch("alliage.io", 'domains')
def test_launch():
assert True
results = tool.launch("alliage.io", 'domain')
assert isinstance(results, Dict)

View File

@@ -0,0 +1,32 @@
import re
from app.tools.network.subfinder import SubfinderTool
tool = SubfinderTool()
def test_name():
assert tool.name() == "subfinder"
def test_description():
assert tool.description() == "Fast passive subdomain enumeration tool."
def test_category():
assert tool.category() == "Subdomain enumeration"
def test_image():
assert tool.get_image() == "projectdiscovery/subfinder"
def test_install():
tool.install()
assert tool.is_installed() == True
def test_version():
tool.install()
version = tool.version()
# Check that version follows the expected format: v followed by digits and dots
assert re.match(r'^v[\d\.]+$', version)
def test_launch():
results = tool.launch("alliage.io")
assert isinstance(results, list)
assert all(isinstance(item, str) for item in results)