Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.db.replay
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
bob
bob.db.replay
Commits
2e5d711c
Commit
2e5d711c
authored
12 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Test specific functionality for client querying
parent
04d02d4f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xbob/db/replay/test.py
+14
-0
14 additions, 0 deletions
xbob/db/replay/test.py
with
14 additions
and
0 deletions
xbob/db/replay/test.py
+
14
−
0
View file @
2e5d711c
...
@@ -104,6 +104,20 @@ class ReplayDatabaseTest(unittest.TestCase):
...
@@ -104,6 +104,20 @@ class ReplayDatabaseTest(unittest.TestCase):
for
k
,
v
in
f
.
items
():
for
k
,
v
in
f
.
items
():
self
.
assertTrue
(
v
.
find
(
'
enroll
'
)
!=
-
1
)
self
.
assertTrue
(
v
.
find
(
'
enroll
'
)
!=
-
1
)
def
test08a_queryClients
(
self
):
db
=
Database
()
f
=
db
.
clients
()
self
.
assertEqual
(
len
(
f
),
50
)
#50 clients
self
.
assertTrue
(
db
.
has_client
(
3
))
self
.
assertFalse
(
db
.
has_client
(
0
))
self
.
assertTrue
(
db
.
has_client
(
21
))
self
.
assertFalse
(
db
.
has_client
(
32
))
self
.
assertFalse
(
db
.
has_client
(
100
))
self
.
assertTrue
(
db
.
has_client
(
101
))
self
.
assertTrue
(
db
.
has_client
(
119
))
self
.
assertFalse
(
db
.
has_client
(
120
))
def
test09_manage_files
(
self
):
def
test09_manage_files
(
self
):
from
bob.db.script.dbmanage
import
main
from
bob.db.script.dbmanage
import
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