Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
managementhost
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DeployIT
managementhost
Commits
8647fb45
Commit
8647fb45
authored
10 years ago
by
Rafael Ostertag
Browse files
Options
Downloads
Patches
Plain Diff
Added new test to test
managementhost.database.Database.get_module_logs().
parent
518ce754
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/database.py
+7
-0
7 additions, 0 deletions
test/database.py
with
7 additions
and
0 deletions
test/database.py
+
7
−
0
View file @
8647fb45
...
...
@@ -61,6 +61,13 @@ class TestDatabase(unittest.TestCase):
for
fixture
in
managementhost_log_fixtures
:
db
.
get_log
(
fixture
[
0
])
==
fixture
def
test_get_module_logs
(
self
):
db
=
managementhost
.
Database
(
deployit
.
config
.
database_config
(
'
path
'
))
[
db
.
add_log
(
*
arg
)
for
arg
in
managementhost_log_fixtures
]
logs
=
db
.
get_module_logs
(
'
module2
'
,
5
)
self
.
assertEqual
(
len
(
logs
),
2
)
if
__name__
==
'
__main__
'
:
unittest
.
main
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment