Skip to content

Commit

Permalink
Preparing tox environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
fwkz committed Apr 9, 2016
1 parent ecf7338 commit 33a2c0e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
gnureadline
requests
paramiko
beautifulsoup4
2 changes: 1 addition & 1 deletion routersploit/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def __init__(self):
"""

def load_modules(self):
self.main_modules_dirs = [module for module in os.listdir(self.modules_directory) if '.py' not in module]
self.main_modules_dirs = [module for module in os.listdir(self.modules_directory) if not module.startswith("__")]
self.modules = []

for root, dirs, files in os.walk(self.modules_directory):
Expand Down
5 changes: 4 additions & 1 deletion routersploit/test/test_interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
import os
import inspect

import mock
try:
import unittest.mock as mock
except ImportError:
import mock

from routersploit.interpreter import RoutersploitInterpreter
from routersploit.exploits import Exploit
Expand Down
11 changes: 11 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[tox]
skipsdist = True
envlist = py27

[testenv]
deps =
py27: mock
pexpect
-r{toxinidir}/requirements.txt

commands=python -m unittest discover -t . -s routersploit/test

0 comments on commit 33a2c0e

Please sign in to comment.