mirror of https://github.com/MISP/PyMISP
Merge branch 'master' of github.com:MISP/PyMISP
commit
2b7046792c
|
@ -20,7 +20,7 @@ install:
|
||||||
- pip install -U nose
|
- pip install -U nose
|
||||||
- pip install coveralls
|
- pip install coveralls
|
||||||
- pip install codecov
|
- pip install codecov
|
||||||
- pip install requests-mock pytest
|
- pip install requests-mock
|
||||||
- pip install https://github.com/lief-project/packages/raw/lief-master-latest/pylief-0.7.0.dev.zip
|
- pip install https://github.com/lief-project/packages/raw/lief-master-latest/pylief-0.7.0.dev.zip
|
||||||
- pip install git+https://github.com/kbandla/pydeep.git
|
- pip install git+https://github.com/kbandla/pydeep.git
|
||||||
- pip install python-magic
|
- pip install python-magic
|
||||||
|
|
9
setup.py
9
setup.py
|
@ -26,8 +26,15 @@ setup(
|
||||||
'Topic :: Security',
|
'Topic :: Security',
|
||||||
'Topic :: Internet',
|
'Topic :: Internet',
|
||||||
],
|
],
|
||||||
test_suite="tests",
|
test_suite="tests.test_offline",
|
||||||
install_requires=['six', 'requests', 'python-dateutil', 'jsonschema'],
|
install_requires=['six', 'requests', 'python-dateutil', 'jsonschema'],
|
||||||
|
tests_require=[
|
||||||
|
'jsonschema',
|
||||||
|
'python-dateutil',
|
||||||
|
'python-magic',
|
||||||
|
'requests-mock',
|
||||||
|
'six'
|
||||||
|
],
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
package_data={'pymisp': ['data/*.json', 'data/misp-objects/schema_objects.json',
|
package_data={'pymisp': ['data/*.json', 'data/misp-objects/schema_objects.json',
|
||||||
'data/misp-objects/schema_relationships.json',
|
'data/misp-objects/schema_relationships.json',
|
||||||
|
|
|
@ -233,9 +233,12 @@ class TestOffline(unittest.TestCase):
|
||||||
|
|
||||||
def test_objects(self, m):
|
def test_objects(self, m):
|
||||||
paths = ['cmd.exe', 'tmux', 'MachO-OSX-x64-ls']
|
paths = ['cmd.exe', 'tmux', 'MachO-OSX-x64-ls']
|
||||||
|
try:
|
||||||
for path in paths:
|
for path in paths:
|
||||||
json_blob = self.make_objects(os.path.join('tests',
|
json_blob = self.make_objects(os.path.join('tests',
|
||||||
'viper-test-files', 'test_files', path))
|
'viper-test-files', 'test_files', path))
|
||||||
|
except IOError: # Can be replaced with FileNotFoundError when support for python 2 is dropped
|
||||||
|
return unittest.SkipTest()
|
||||||
print(json_blob)
|
print(json_blob)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in New Issue