mirror of
https://github.com/reconurge/flowsint.git
synced 2026-05-03 01:54:01 -05:00
feat: python formatter finally working
This commit is contained in:
@@ -1,32 +1,38 @@
|
||||
import re
|
||||
from app.tools.network.subfinder import SubfinderTool
|
||||
from 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)
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user