mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-06 21:12:16 -07:00
got rid of sudo in tests
This commit is contained in:
parent
7f691244e7
commit
1dd8feeea0
2 changed files with 4 additions and 4 deletions
|
@ -1,10 +1,10 @@
|
||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
- "2.7"
|
- "2.7"
|
||||||
sudo: required
|
sudo: false
|
||||||
before_install:
|
before_install:
|
||||||
- "sudo apt-get update -qq"
|
- "apt-get update -qq"
|
||||||
- "sudo apt-get install libpcap0.8-dev libnetfilter-queue-dev"
|
- "apt-get install libpcap0.8-dev libnetfilter-queue-dev"
|
||||||
|
|
||||||
install: "pip install -r requirements.txt"
|
install: "pip install -r requirements.txt"
|
||||||
script: tests/basic_tests.py
|
script: tests/basic_tests.py
|
||||||
|
|
|
@ -4,7 +4,7 @@ from commands import getstatusoutput
|
||||||
class BasicTests(unittest.TestCase):
|
class BasicTests(unittest.TestCase):
|
||||||
|
|
||||||
def test_exec(self):
|
def test_exec(self):
|
||||||
status, res = getstatusoutput('sudo python mitmf.py --help')
|
status, res = getstatusoutput('python mitmf.py --help')
|
||||||
self.assertEqual(0, status)
|
self.assertEqual(0, status)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue