test_msc_level2_catalog.py 529 Bytes
Newer Older
Wei Shoulin's avatar
Wei Shoulin committed
1
2
3
4
import os
import unittest
from astropy.io import fits

Wei Shoulin's avatar
Wei Shoulin committed
5
from csst_dfs_api_local.msc.level2 import Level2CatalogApi
Wei Shoulin's avatar
Wei Shoulin committed
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

class MSCLevel2CatalogApiTestCase(unittest.TestCase):

    def setUp(self):
        self.api = Level2CatalogApi()

    def test_find(self):
        recs = self.api.find(
            obs_id='100000000',
            obs_time = ("2021-05-24 11:12:13","2021-05-25 13:12:13"),
            limit = 100)
        print('find:', recs)

    def test_write(self):
        rec = self.api.write([])
        print('write:', rec)