Skip to content
Snippets Groups Projects
Commit 7c325e84 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

add an unit test

parent 8b1612df
No related branches found
No related tags found
No related merge requests found
import unittest
from tempsdb.database import create_database
class TestDatabase(unittest.TestCase):
@classmethod
def setUpClass(cls) -> None:
cls.db = create_database('my_db')
def test_add_series(self):
ser = self.db.create_series('hello-world', 1, 10)
ser.append(10, b'\x00')
ser.append(20, b'\x00')
ser.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment