Skip to content
Snippets Groups Projects
Commit 887ba40a authored by Alexander Kreft's avatar Alexander Kreft
Browse files

Inital test file

parent e1639b57
No related branches found
No related tags found
Loading
import unittest
import caosdb as db
import h5py
from caosadvancedtools.cfoods import h5
class H5CFoodTest(unittest.TestCase):
def test_create_record(self):
testCrawler = h5.H5CFood()
testCrawler.h5file = ".\hdf5_dummy_file.hdf5"
a = testCrawler.create_record(testCrawler.h5file)
print(a)
self.assertTrue(1)
with h5py.File("hdf5_dummy_file.hdf5", mode="a") as hdf5:
testCrawler = h5.H5CFood(crawled_path = ".\hdf5_dummy_file.hdf5")
testCrawler.h5file = ".\hdf5_dummy_file.hdf5"
a = testCrawler.create_record(hdf5)
print(a)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment