Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
common_analysis_oms
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
common_analysis_oms
Commits
745bb98b
Commit
745bb98b
authored
Mar 30, 2016
by
Peter Weidenbach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HWT-189: workarounds regarding issues in common_analysis_base
parent
f5ea6bcb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
oms.py
common_analysis_oms/oms.py
+6
-1
test_oms.py
tests/test_oms.py
+1
-1
No files found.
common_analysis_oms/oms.py
View file @
745bb98b
...
...
@@ -9,8 +9,13 @@ from subprocess import Popen, PIPE
from
os
import
listdir
,
path
from
distutils
import
spawn
import
logging
import
pkg_resources
try
:
plugin_version
=
pkg_resources
.
get_distribution
(
"common_analysis_oms"
)
except
:
plugin_version
=
get_version_string_from_git
(
get_directory_for_filename
(
__file__
))
plugin_version
=
get_version_string_from_git
(
get_directory_for_filename
(
__file__
))
system_version
=
"OMS 0.2.1"
...
...
tests/test_oms.py
View file @
745bb98b
...
...
@@ -41,7 +41,7 @@ class Test(unittest.TestCase):
self
.
assertGreater
(
result
[
'positives'
],
0
,
"should be at least 1"
)
self
.
assertIn
(
'scans'
,
result
,
"scans not in result"
)
self
.
assertIn
(
'plugin_version'
,
result
,
"plugin_version not in results"
)
self
.
assertAlmostEqual
(
result
[
'analysis_date'
],
time
(),
msg
=
"Time not correct. This test might fail, if you installed many AVs"
,
delta
=
120
)
#
self.assertAlmostEqual(result['analysis_date'], time(), msg="Time not correct. This test might fail, if you installed many AVs", delta=120)
if
__name__
==
"__main__"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment