mirror of https://github.com/MISP/PyMISP
fix: test case.
parent
0770a15659
commit
a7a178c4bd
|
@ -1,5 +1,4 @@
|
||||||
{
|
[
|
||||||
"response": [
|
|
||||||
{
|
{
|
||||||
"SharingGroup": {
|
"SharingGroup": {
|
||||||
"id": "1",
|
"id": "1",
|
||||||
|
@ -96,5 +95,4 @@
|
||||||
],
|
],
|
||||||
"editable": true
|
"editable": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
|
||||||
|
|
|
@ -112,7 +112,8 @@ class TestOffline(unittest.TestCase):
|
||||||
self.initURI(m)
|
self.initURI(m)
|
||||||
pymisp = PyMISP(self.domain, self.key)
|
pymisp = PyMISP(self.domain, self.key)
|
||||||
sharing_groups = pymisp.get_sharing_groups()
|
sharing_groups = pymisp.get_sharing_groups()
|
||||||
self.assertEqual(sharing_groups[0], self.sharing_groups['response'][0])
|
print(sharing_groups)
|
||||||
|
self.assertEqual(sharing_groups['response'][0], self.sharing_groups[0])
|
||||||
|
|
||||||
def test_auth_error(self, m):
|
def test_auth_error(self, m):
|
||||||
self.initURI(m)
|
self.initURI(m)
|
||||||
|
|
|
@ -18,7 +18,7 @@ except ImportError as e:
|
||||||
|
|
||||||
from uuid import uuid4
|
from uuid import uuid4
|
||||||
|
|
||||||
travis_run = False
|
travis_run = True
|
||||||
|
|
||||||
|
|
||||||
class TestComprehensive(unittest.TestCase):
|
class TestComprehensive(unittest.TestCase):
|
||||||
|
|
Loading…
Reference in New Issue