Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tempsdb
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
tempsdb
Commits
5642afaa
Commit
5642afaa
authored
3 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
extra tests
parent
fe3f50b4
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
tests/test_series.py
+13
-0
13 additions, 0 deletions
tests/test_series.py
with
13 additions
and
0 deletions
tests/test_series.py
+
13
−
0
View file @
5642afaa
...
...
@@ -8,6 +8,19 @@ from tempsdb.exceptions import Corruption
class
TestSeries
(
unittest
.
TestCase
):
def
test_empty
(
self
):
"""
Test trimming after writing without closing the series.
Also tests out close_chunks and open_chunks_mmap_size
"""
from
tempsdb.series
import
create_series
series
=
create_series
(
'
test18
'
,
'
test18
'
,
10
,
4096
)
try
:
self
.
assertRaises
(
ValueError
,
series
.
get_current_value
)
finally
:
series
.
close
()
def
test_trim_multiple_chunks_wo_close
(
self
):
"""
Test trimming after writing without closing the series.
...
...
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